Created
January 18, 2018 04:36
-
-
Save agungyuliaji/eb5281dc891457bb2f74a5080596a26c to your computer and use it in GitHub Desktop.
sample proxy
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
server { | |
listen 5500; | |
server_name localhost; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
proxy_pass http://localhost:5000; | |
} | |
location ~/app(.*)$ { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_pass_request_headers on; | |
proxy_pass http://127.0.0.1:3000$1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment