location /api/websocket {
proxy_pass ws://192.168.56.101:8123/api/websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
location / {
proxy_pass http://192.168.56.101:8123/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
WebSockets on nginx was last modified: July 15th, 2024 by