From fd2c3ba2f151306fa41176c77601972784f3b010 Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Tue, 25 Jul 2023 14:24:21 -0400 Subject: [PATCH] Appease Nginx --- server/lib/config/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/lib/config/nginx.conf b/server/lib/config/nginx.conf index a5128e9467..badd5a809f 100644 --- a/server/lib/config/nginx.conf +++ b/server/lib/config/nginx.conf @@ -82,9 +82,11 @@ http { error_page 500 502 503 504 /50x.html; error_page 597 @maintenance; + set $max_body_size 1M; if ($request_uri ~* "/api/.*/upload/") { - client_max_body_size 100G; + set $max_body_size 100G; } + client_max_body_size $max_body_size; location @maintenance { rewrite ^(.*)$ /maintenance.json break;