The x-forwarded-host proxy setting must be configurable.
This commit is contained in:
parent
494ed77f8b
commit
6197662fee
|
@ -49,6 +49,7 @@ nginx_define_x_real_ip: False
|
|||
nginx_set_original_uri: True
|
||||
nginx_proxy_buffering: "on"
|
||||
nginx_proxy_redirect: "off"
|
||||
nginx_x_forwarded_host: "$remote_addr"
|
||||
nginx_proxy_buffer_size: 128k
|
||||
nginx_proxy_buffers: '4 {{ nginx_proxy_buffer_size }}'
|
||||
nginx_proxy_busy_buffers_size: 256k
|
||||
|
|
|
@ -5,7 +5,7 @@ proxy_set_header Connection "";
|
|||
{% if haproxy_ips is defined %}
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host {{ nginx_x_forwarded_host }};
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
{% else %}
|
||||
proxy_set_header Host $host;
|
||||
|
|
Loading…
Reference in New Issue