1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

nodered-nginx.conf.j2: Single stanza avoids WebSocket errors?! ("Lost connection to server, reconnecting...")

This commit is contained in:
root 2021-07-06 01:53:57 -04:00
parent c4c0586bb1
commit a2778e155c

View file

@ -3,12 +3,24 @@
location /nodered/ {
proxy_pass http://127.0.0.1:{{ nodered_port }}/nodered/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /nodered/debug/ws/ {
proxy_pass http://127.0.0.1:{{ nodered_port }}/nodered/debug/ws;
}
#location /nodered/debug/ws/ {
# proxy_pass http://127.0.0.1:{{ nodered_port }}/nodered/debug/ws;
#
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
#}
location /nodered/comms/ {
proxy_pass http://127.0.0.1:{{ nodered_port }}/nodered/comms;
}
#location /nodered/comms/ {
# proxy_pass http://127.0.0.1:{{ nodered_port }}/nodered/comms;
#
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
#}