1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00

fix(console): keep socketiod behind nginx and off by default there too

- Comment out the nginx /socket.io/ location: a firewall on 6081 does not
  protect a console that nginx proxies on 80/443.
- Default SOCKETIO_HOST to 127.0.0.1.
- README: short enable steps and the changes existing installs need.
- test_socketiod_disabled writes its settings module to a temporary
  directory instead of the source tree.
This commit is contained in:
catborise 2026-10-02 22:27:39 +03:00
parent 1547e58e55
commit 4252ad9280
4 changed files with 28 additions and 31 deletions

View file

@ -27,12 +27,15 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /socket.io/ {
proxy_pass http://wssocketiod;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Serial console (socketiod). Disabled by default: socketiod does not
# authenticate connections yet. Uncomment only together with
# SERIAL_CONSOLE_ENABLED = True, and only on a trusted network.
#location /socket.io/ {
# proxy_pass http://wssocketiod;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
#}
location /websockify {
proxy_pass http://wsnovncd;
proxy_http_version 1.1;