File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ server {
13
13
{% include "_hsts.conf" %}
14
14
{% include "_forced_ssl.conf" %}
15
15
16
+ {% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
17
+ proxy_set_header Upgrade $http_upgrade;
18
+ proxy_set_header Connection $http_connection;
19
+ proxy_http_version 1.1;
20
+ {% endif %}
21
+
22
+
16
23
access_log /data/logs/proxy_host-{{ id }}.log proxy;
17
24
18
25
{{ advanced_config }}
@@ -46,12 +53,6 @@ server {
46
53
47
54
{% include "_hsts.conf" %}
48
55
49
- {% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
50
- proxy_set_header Upgrade $http_upgrade;
51
- proxy_set_header Connection $http_connection;
52
- proxy_http_version 1.1;
53
- {% endif %}
54
-
55
56
# Proxy!
56
57
include conf.d/include/proxy.conf;
57
58
}
You can’t perform that action at this time.
0 commit comments