Skip to content

Commit

Permalink
Appease Nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Jul 25, 2023
1 parent db2d947 commit fd2c3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/lib/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd2c3ba

Please sign in to comment.