nginx virtualhost for smartgears: set the nginx client temporary directory for the uploads if it's defined.

This commit is contained in:
Andrea Dell'Amico 2017-09-22 13:10:24 +02:00
parent f9a531231e
commit 72c260b3b4
1 changed files with 8 additions and 0 deletions

View File

@ -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 %}