3 ms·
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 s
by lgbr 13y ago
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 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 https://gist.github.com/lgbr/5453375