From 22aa4d1430882b6cfc7a66719fe790279d54d5aa Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sat, 29 May 2021 12:40:14 +0200 Subject: [PATCH] Fix the check on nginx_proxy_define_header_host. --- templates/nginx-proxy-params.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nginx-proxy-params.conf.j2 b/templates/nginx-proxy-params.conf.j2 index 900ce90..4843561 100644 --- a/templates/nginx-proxy-params.conf.j2 +++ b/templates/nginx-proxy-params.conf.j2 @@ -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 %}