Allow proxy_http_version and websocket whithout proxy_set_header (#256)
This commit is contained in:
parent
5a35dc3271
commit
b254348851
@ -265,6 +265,7 @@ server {
|
||||
{% for header in item.value.servers[server].reverse_proxy.locations[location].proxy_set_header %}
|
||||
proxy_set_header {{ item.value.servers[server].reverse_proxy.locations[location].proxy_set_header[header].name }} {{ item.value.servers[server].reverse_proxy.locations[location].proxy_set_header[header].value }};
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.value.servers[server].reverse_proxy.locations[location].proxy_http_version is defined %}
|
||||
proxy_http_version {{ item.value.servers[server].reverse_proxy.locations[location].proxy_http_version }};
|
||||
{% endif %}
|
||||
@ -272,7 +273,6 @@ server {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if item.value.servers[server].reverse_proxy.locations[location].try_files is defined %}
|
||||
try_files {{ item.value.servers[server].reverse_proxy.locations[location].try_files }};
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user