Change max upload size setting (#410)

---------

Co-authored-by: Gabriele Capitani <gabrielecapitani2005@gmail.com>
This commit is contained in:
Andrea Nassi 2023-09-10 02:01:44 +02:00 committed by GitHub
parent eae6f58450
commit 0e65688166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,8 @@ server {
listen 80;
server_name ${DOMAIN};
client_max_body_size 20M; # Maximum upload size
location ~ ^/api(.*)$ {
rewrite ^/api(/.*)$ $1 break;
@ -73,4 +75,4 @@ server {
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
}

View File

@ -18,6 +18,8 @@ server {
listen 80;
server_name ${DOMAIN};
client_max_body_size 20M; # Maximum upload size
location ~ ^/api(.*)$ {
rewrite ^/api(/.*)$ $1 break;