File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ nginx_http_template:
350
350
backend :
351
351
location : /
352
352
proxy_pass : http://backend
353
+ websocket : false
353
354
health_check_plus : false
354
355
upstreams :
355
356
upstream1 :
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ nginx_http_template:
181
181
backend :
182
182
location : /
183
183
proxy_pass : http://backend
184
+ websocket : false
184
185
health_check_plus : false
185
186
upstreams :
186
187
upstream1 :
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ server {
41
41
proxy_set_header X-Real-IP $remote_addr;
42
42
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
43
43
proxy_set_header X-Forwarded-Proto $scheme;
44
+ {% if item .value .reverse_proxy .locations [location ].websocket is defined and item .value .reverse_proxy .locations [location ].websocket %}
45
+ proxy_set_header Upgrade $http_upgrade;
46
+ proxy_set_header Connection "Upgrade";
47
+ {% endif %}
44
48
}
45
49
46
50
{% endfor %}
You can’t perform that action at this time.
0 commit comments