Skip to content

Commit ba45705

Browse files
committed
Partial revert of 421934e
Keeping the server block of websocket definitions but also bringing back the location block after discussions on #1067
1 parent a32be3e commit ba45705

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backend/templates/proxy_host.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ proxy_http_version 1.1;
5353

5454
{% include "_hsts.conf" %}
5555

56+
{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
57+
proxy_set_header Upgrade $http_upgrade;
58+
proxy_set_header Connection $http_connection;
59+
proxy_http_version 1.1;
60+
{% endif %}
61+
5662
# Proxy!
5763
include conf.d/include/proxy.conf;
5864
}

0 commit comments

Comments
 (0)