nginx-proxy: Websocket connection can't be made
I’m trying to run an instance of Jupyter on my Digital Ocean server using this container: https://hub.docker.com/r/jupyter/notebook/. I have nginx-proxy configured to connect to that container with the correct hostname, but despite editing the notes.rooday.com_location file in /etc/nginx/vhost.d/, websocket connections can’t be made.
This is my notes.rooday.com_location file:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
This is the error Chrome gives me when I open a jupyter iPython notebook and attempt to make a websocket connection:
WebSocket connection to 'ws://notes.rooday.com/api/kernels/677b0d97-20cd-4b1a-b499-c9b513b859d9/channels?session_id=6E236819286E46D38B03D34047252F48' failed: Error during WebSocket handshake: Unexpected response code: 400
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 28
Very strange, this my dump when it works: