Last active
December 26, 2015 10:17
-
-
Save vignesh0025-zz/4f857185bb1d8db45df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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