Created
March 1, 2016 16:45
-
-
Save alincc/e83cadd93e581e160d6a to your computer and use it in GitHub Desktop.
nginx.conf for angular2 and spring boot
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; | |
# All calls to port 3000 | |
location / { | |
proxy_pass http://localhost:3000; | |
} | |
# Any /api/* call, redirect to another instance | |
location ~api/ { | |
proxy_pass http://localhost:8080; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment