forked from ISTI-ansible-roles/ansible-roles
nginx virtualhost for smartgears: set the nginx client temporary directory for the uploads if it's defined.
This commit is contained in:
parent
f9a531231e
commit
72c260b3b4
|
@ -44,6 +44,10 @@ server {
|
||||||
# don't send the nginx version number in error pages and Server header
|
# don't send the nginx version number in error pages and Server header
|
||||||
server_tokens off;
|
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
|
# Proxy stuff
|
||||||
include /etc/nginx/snippets/nginx-proxy-params.conf;
|
include /etc/nginx/snippets/nginx-proxy-params.conf;
|
||||||
{% if nginx_websockets_support %}
|
{% if nginx_websockets_support %}
|
||||||
|
@ -169,6 +173,10 @@ server {
|
||||||
# don't send the nginx version number in error pages and Server header
|
# don't send the nginx version number in error pages and Server header
|
||||||
server_tokens off;
|
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
|
# Proxy stuff
|
||||||
include /etc/nginx/snippets/nginx-proxy-params.conf;
|
include /etc/nginx/snippets/nginx-proxy-params.conf;
|
||||||
{% if nginx_websockets_support %}
|
{% if nginx_websockets_support %}
|
||||||
|
|
Loading…
Reference in New Issue