From 41fedc251b7107d6e9b1c5b9dacf795098fc6ada Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 12 Apr 2016 22:33:55 +0200 Subject: [PATCH] Update configuration templates to support 100MB request bodies --- nginx_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) 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;