-
-
Save NuckChorris/e67ebe0865bb21eca69c897e206185c0 to your computer and use it in GitHub Desktop.
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
server { | |
listen 80; | |
# Proxy settings | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real_IP $remote_addr; | |
proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for; | |
location /api/ { | |
proxy_pass http://server/api/; | |
} | |
location / { | |
proxy_pass http://client/; | |
} | |
} |
adam12
commented
Sep 19, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment