From 72c260b3b4861512e8a4d79505a48fff23cb9aa5 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 22 Sep 2017 13:10:24 +0200 Subject: [PATCH] nginx virtualhost for smartgears: set the nginx client temporary directory for the uploads if it's defined. --- .../templates/generic-smartgears-virtualhost.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) 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 %}