phovea/phovea_landing_page

Handle WebSocket connection in ngnix configuration

thinkh opened this issue · 0 comments

The ThermalPlot Demo is currently not working correctly, because the WebSocket connection is closed immediately.

image

We had the same problem with the old server and solved it by changing the nginx configuration. We have to upgrade the connection as described in the nginx documentation:

location /wsapp/ {
    proxy_pass http://wsbackend;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
}

Additional resources: