News for hackers. Stuff that matters.
Re:Nginx now supports Websockets by davidw on Tuesday February 19, 2013 @12:27PM (#5245611)
What were people using previously? Just plopping their node.js or whatever straight on the network?
Re:Nginx now supports Websockets by jsharpe on Tuesday February 19, 2013 @02:35PM (#5246521)
I use python's Tornado webserver directly on the network. Don't know if it's the best idea, but seems to work fine for my purposes.
Re:Nginx now supports Websockets by dcraw on Tuesday February 19, 2013 @02:47PM (#5246597)
I've had good results so far with node-http-proxy:

https://github.com/nodejitsu/node-http-proxy/

Easy to set up, and has the benefit of reducing the number of processes I need to maintain (my node server and my proxy server are the same).

Re:Nginx now supports Websockets by mason55 on Thursday February 21, 2013 @10:13PM (#5262322)
Hey... saw your comment here http://news.ycombinator.com/item?id=5172775 about the work you did on unrolling arrays in mongo_fdw. Any chance you can email me about it (that thread is closed). username @ gmail.com
Re:Nginx now supports Websockets by istvanp on Tuesday February 19, 2013 @12:32PM (#5245637)
We are using HAproxy to direct traffic and nginx only as a web server. The config looks something like this: http://stackoverflow.com/a/8640394/218413
Re:Nginx now supports Websockets by pkulak on Tuesday February 19, 2013 @04:32PM (#5247187)
HAProxy has had Websocket support for a while now. But other than that, you can run run on the same domain without a proxy by just using a different port.
Re:Nginx now supports Websockets by adamkittelson on Tuesday February 19, 2013 @12:33PM (#5245655)
Something like varnish or haproxy. In my setup I had varnish proxying "/websocket" directly to my app server, and everything else to nginx.
Re:Nginx now supports Websockets by elliotanderson on Tuesday February 19, 2013 @06:52PM (#5247986)
There was two main options

1. Run nginx with something like HAProxy/Varnish infront

2. Run nginx alone with the app server on port 80/443 and the websocket server running on a special port. The app was then proxyed using the built in http_proxy, while the websocket was handled by tcp_proxy.

Re:Nginx now supports Websockets by brendanobrien on Tuesday February 19, 2013 @12:34PM (#5245665)
I've been using HAProxy in the interim.
Re:Nginx now supports Websockets by churreiro on Tuesday February 19, 2013 @04:14PM (#5247071)
Varnish and HAproxy