- Server operating system version
- idk
- Plesk version and microupdate number
- idk
Hello,
since Nodejs gets a port from passenger, I wanted to ask how I can use it with a websocket, because a websocket requires additional settings for nginx with a fixed port. Currently I have this in nginx. (Just wanted to say that the server does not belong to me directly, so I host with a web hosting service, therefore all "additional Nginx settings" must be made by a supporter and i cant see the versions)
location /ws {
proxy_pass http://localhost:3009/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
since Nodejs gets a port from passenger, I wanted to ask how I can use it with a websocket, because a websocket requires additional settings for nginx with a fixed port. Currently I have this in nginx. (Just wanted to say that the server does not belong to me directly, so I host with a web hosting service, therefore all "additional Nginx settings" must be made by a supporter and i cant see the versions)
location /ws {
proxy_pass http://localhost:3009/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}