diff --git a/defaults/main.yml b/defaults/main.yml index 393a87c..8fd4773 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,6 +2,8 @@ nginx_revproxy_sites: # List of sites to reverse proxy example.com: # Domain name + client_max_body_size: "256M" + proxy_read_timeout: "360" domains: # List of server_name aliases - example.com - www.example.com diff --git a/templates/reverseproxy.conf.j2 b/templates/reverseproxy.conf.j2 index efb2f50..ef9882d 100644 --- a/templates/reverseproxy.conf.j2 +++ b/templates/reverseproxy.conf.j2 @@ -30,6 +30,7 @@ server { location / { gzip off; client_max_body_size {{ item.value.client_max_body_size | default('50M') }}; + proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }}; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; diff --git a/templates/reverseproxy_ssl.conf.j2 b/templates/reverseproxy_ssl.conf.j2 index 604f274..3bbe1cc 100644 --- a/templates/reverseproxy_ssl.conf.j2 +++ b/templates/reverseproxy_ssl.conf.j2 @@ -92,6 +92,7 @@ server { gzip off; proxy_set_header X-Forwarded-Ssl on; client_max_body_size {{ item.value.client_max_body_size | default('50M') }}; + proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }}; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host;