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:
Andrea Dell'Amico 2017-12-15 19:11:44 +01:00
parent 8efc0aca14
commit 4f758e5d21
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Proxy stuff
# include /etc/nginx/snippets/nginx-proxy-params.conf;
proxy_http_version 1.1;
proxy_set_header Connection "";
{% if haproxy_ips is defined %}
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;