fix proxy header separation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-07-18 23:24:20 +02:00
parent c6501209f8
commit ffdde4d4c6

View File

@ -43,10 +43,12 @@ server {
{% if location.proxy_http_version is defined and location.proxy_http_version %}
proxy_http_version {{ location.proxy_http_version }};
{% endif %}
{% for pheader in location.proxy_headers | default([]) %}
{% if location.proxy_headers is defined and location.proxy_headers %}
{% for pheader in location.proxy_headers %}
proxy_set_header {{ pheader }};
{% endfor %}
{% endif %}
{% endif %}
}