Skip to content

Instantly share code, notes, and snippets.

@alincc
Created March 1, 2016 16:45
Show Gist options
  • Save alincc/e83cadd93e581e160d6a to your computer and use it in GitHub Desktop.
Save alincc/e83cadd93e581e160d6a to your computer and use it in GitHub Desktop.
nginx.conf for angular2 and spring boot
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