Skip to content

Instantly share code, notes, and snippets.

@vignesh0025-zz
Last active December 26, 2015 10:17
Show Gist options
  • Save vignesh0025-zz/4f857185bb1d8db45df0 to your computer and use it in GitHub Desktop.
Save vignesh0025-zz/4f857185bb1d8db45df0 to your computer and use it in GitHub Desktop.
sudo npm install pm2 -g
pm2 start app.js
#use it to start at boot
pm2 startup ubuntu
#nginx.conf
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://10.0.1.15:8080;
proxy_http_version 1.1;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection 'upgrade';
#proxy_set_header Host $host;
#proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment