Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's really not that much to it. Use nginx that comes from APT and use a unix socket to communicate between node and nginx.

I use this code to open a unix socket in production at tmp/socket : https://gist.github.com/lgbr/5453355

And use a configuration like this for nginx (replace /etc/nginx/sites-available/default with this): https://gist.github.com/lgbr/5453375



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: