I have a docker app on latest Plesk Onyx running (mattermost) and it works perfectly when opened directly through server IP and Docker mapped port (192.168.0.5:33000) Everything works great.
The problem is when I try to make it work through NGINX proxy. If select a domain and set Docker Proxy Rules for the app, it works until a websocket connection is requred. In this moment I get the following error:
WebSocket connection to 'wss://chat.spntt.com/api/v3/users/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
And this repeats for every request. I tried adding additional nginx rules as below but is still does not work.
ocation /api/v3/ {
proxy_pass http://0.0.0.0:33000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
I have disabled proxy mode even in the apache&nginx settings. What else can I do?
The problem is when I try to make it work through NGINX proxy. If select a domain and set Docker Proxy Rules for the app, it works until a websocket connection is requred. In this moment I get the following error:
WebSocket connection to 'wss://chat.spntt.com/api/v3/users/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
And this repeats for every request. I tried adding additional nginx rules as below but is still does not work.
ocation /api/v3/ {
proxy_pass http://0.0.0.0:33000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
I have disabled proxy mode even in the apache&nginx settings. What else can I do?