diff --git a/default.conf b/default.conf index c6f2a27..3ec3c96 100644 --- a/default.conf +++ b/default.conf @@ -3,7 +3,7 @@ server { index index.html index.htm index.nginx-debian.html; server_name _; # managed by Certbot - client_max_body_size 0; + client_max_body_size 100M; location /404 { try_files $uri $uri/ /index.html; @@ -106,6 +106,7 @@ server { } location /answer/ { + client_max_body_size 100M; if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -115,7 +116,6 @@ server { return 200; } - client_max_body_size 0; add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type,x-sessionkey always; @@ -125,6 +125,7 @@ server { } location /squiz/ { + client_max_body_size 100M; if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -299,6 +300,7 @@ server { listen 80 ; listen [::]:80 ; server_name _; + client_max_body_size 100M; location /robots.txt { if ($host = services,pena.digital) {