Glavin001 / smucs

Saint Mary's University Computer Science @
http://140.184.132.237
MIT License
1 stars 0 forks source link

Socket.io not working with Nginx reverse proxy from port 80 #24

Closed Glavin001 closed 10 years ago

Glavin001 commented 10 years ago

Socket.io not working with Nginx reverse proxy from port 80.

This should be solution: https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/

Glavin001 commented 10 years ago

We should be able to use Express for serving the port number being used by Socket.io

Endpoint GET /serverConfig:

{ 
"port":  1234
}
Glavin001 commented 10 years ago

Fixed by upgrading Nginx to version 1.5.6. Looks like websocket support in version 1.3.13 ( see https://github.com/LearnBoost/socket.io/wiki/Nginx-and-Socket.io ) See http://stackoverflow.com/a/18658950/2578205 for Nginx solution to websockets.