Fix the check on nginx_proxy_define_header_host.

This commit is contained in:
Andrea Dell'Amico 2021-05-29 12:40:14 +02:00
parent c301a2b1a1
commit 22aa4d1430
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
proxy_http_version 1.1;
proxy_set_header Connection "";
{% if haproxy_ips is defined %}
{% if not nginx_proxy_define_header_host %}
{% if nginx_proxy_define_header_host %}
proxy_set_header Host $http_host;
{% endif %}
{% if nginx_behind_haproxy_settings %}
@ -12,7 +12,7 @@ proxy_set_header X-Forwarded-Host {{ nginx_x_forwarded_host }};
proxy_set_header X-Forwarded-Server $host;
{% endif %}
{% else %}
{% if not nginx_proxy_define_header_host %}
{% if nginx_proxy_define_header_host %}
proxy_set_header Host $host;
{% endif %}
{% if nginx_define_x_real_ip %}