diff --git a/nginx_proxy.py b/nginx_proxy.py index 089a96f..0286ef5 100755 --- a/nginx_proxy.py +++ b/nginx_proxy.py @@ -15,6 +15,8 @@ server { listen $listen; server_name $names; location / { + client_max_body_size 100m; + client_body_timeout 300s; proxy_set_header X-Real-IP $$remote_addr; proxy_set_header X-Forwarded-For $$remote_addr; proxy_set_header Host $$host; @@ -31,6 +33,8 @@ server { return 301 $$scheme://$name/$location; } location /$location { + client_max_body_size 100m; + client_body_timeout 300s; proxy_set_header X-Real-IP $$remote_addr; proxy_set_header X-Forwarded-For $$remote_addr; proxy_set_header Host $$host;