Created
November 26, 2014 15:00
-
-
Save sergeysova/f5d48069bd2a2efa2287 to your computer and use it in GitHub Desktop.
NginX + Node.JS configuration
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 node_playkot { | |
server 127.0.0.1:1227; | |
keepalive 8; | |
} | |
server { | |
server_name playkot.lestad.net playkot.lestad.local; | |
listen 80; | |
charset UTF-8; | |
set $root /var/nodejs/playkot/; | |
access_log /var/nodejs/playkot/access.log; | |
error_log /var/nodejs/playkot/errors.log; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-NginX-Proxy true; | |
proxy_set_header Host $http_host; | |
proxy_read_timeout 120s; | |
proxy_pass http://node_playkot/; | |
proxy_redirect off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment