diff --git a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 index 1510e73d..c5998508 100644 --- a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 +++ b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 @@ -44,6 +44,10 @@ server { # don't send the nginx version number in error pages and Server header server_tokens off; + {% if nginx_client_body_temp_dir is defined %} + client_body_temp_path {{ nginx_client_body_temp_dir }} 1 2; + {% endif %} + # Proxy stuff include /etc/nginx/snippets/nginx-proxy-params.conf; {% if nginx_websockets_support %} @@ -169,6 +173,10 @@ server { # don't send the nginx version number in error pages and Server header server_tokens off; + {% if nginx_client_body_temp_dir is defined %} + client_body_temp_path {{ nginx_client_body_temp_dir }} 1 2; + {% endif %} + # Proxy stuff include /etc/nginx/snippets/nginx-proxy-params.conf; {% if nginx_websockets_support %}