Run Node.JS web apps automatically using NGINX reverse proxy, UNIX sockets and PM2.
Usage.
- PM2 must be installed.
- The app must be installed in
/home/user/web/domain/nodeapp/
- The app entry point must be
/home/user/web/domain/nodeapp/app.js
- The app must listen on a UNIX socket in
/home/user/web/domain/nodeapp/app.sock
- Upload
NodeJS.tpl
,NodeJS.stpl
,NodeJS.sh
to/usr/local/vesta/data/templates/web/nginx/
- In the control panel, select NodeJS from Proxy Template
Template files download: https://github.com/logico/vestacp-nodejs
Similar Posts:
- how to secure nginx http traffic to upstream servers
- How To Install Node.js on Debian 10 buster
- how to setup FusionAuth server with nginx and ssl
- How to migrate user to the new server VestaCP
- Better logging format for nginx proxy_pass
2,799