forked from ISTI-ansible-roles/ansible-roles
library/roles/nginx/templates/nginx-proxy-params.conf.j2: Add a new parameter to work better when keepalive is active.
This commit is contained in:
parent
8efc0aca14
commit
4f758e5d21
|
@ -1,6 +1,7 @@
|
||||||
# Proxy stuff
|
# Proxy stuff
|
||||||
# include /etc/nginx/snippets/nginx-proxy-params.conf;
|
# include /etc/nginx/snippets/nginx-proxy-params.conf;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection "";
|
||||||
{% if haproxy_ips is defined %}
|
{% if haproxy_ips is defined %}
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
Loading…
Reference in New Issue