Created
April 21, 2018 08:16
-
-
Save nairihar/39018eef2bd9814f31879b3725c973ed to your computer and use it in GitHub Desktop.
NodeJS with NGINX, medium, nginx conf
This file contains hidden or 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 api { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
} | |
server { | |
listen 8080; | |
location / { | |
proxy_pass http://api; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment