From c97832976fe1390ca8314382b4607e6020b3a034 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 14 Feb 2024 14:14:28 +0000 Subject: [PATCH] Update default.conf --- default.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {