Skip to content

Commit b254348

Browse files
Allow proxy_http_version and websocket whithout proxy_set_header (#256)
1 parent 5a35dc3 commit b254348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/http/default.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ server {
265265
{% for header in item.value.servers[server].reverse_proxy.locations[location].proxy_set_header %}
266266
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 }};
267267
{% endfor %}
268+
{% endif %}
268269
{% if item.value.servers[server].reverse_proxy.locations[location].proxy_http_version is defined %}
269270
proxy_http_version {{ item.value.servers[server].reverse_proxy.locations[location].proxy_http_version }};
270271
{% endif %}
271272
{% if item.value.servers[server].reverse_proxy.locations[location].websocket is defined and item.value.servers[server].reverse_proxy.locations[location].websocket %}
272273
proxy_set_header Upgrade $http_upgrade;
273274
proxy_set_header Connection "Upgrade";
274275
{% endif %}
275-
{% endif %}
276276
{% if item.value.servers[server].reverse_proxy.locations[location].try_files is defined %}
277277
try_files {{ item.value.servers[server].reverse_proxy.locations[location].try_files }};
278278
{% endif %}

0 commit comments

Comments
 (0)