Created
May 7, 2015 20:07
-
-
Save dropofwill/8eb02975e41bbb00a4b8 to your computer and use it in GitHub Desktop.
partypenguin
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
upstream app_party_penguin { | |
server 0.0.0.0:3000; | |
} | |
server { | |
listen 80; | |
server_name penguinparty.rit.edu; | |
location / { | |
proxy_pass http://app_party_penguin; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
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
description "Node.js and Nginx PartyPenguin Server" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
pre-start script | |
echo "[`date`] starting " >> /var/log/partypenguin.log; | |
end script | |
script | |
export HOME=/var/www/584-Nginx-Exercise; | |
exec nodejs /var/www/584-Nginx-Exercise/src/server.js; | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment