Here is my nginx proxy that I use in production for a Socket.IO server:
location /socket.io {
proxy_pass http://localhost:8890;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
I have this working for a year, already. Hope it helps.






















