Last active
September 20, 2017 15:09
-
-
Save bcardarella/8704e8e3b7631060492a22096ed58555 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
upstream phoenix { | |
server 127.0.0.1:4000; | |
} | |
server { | |
myapp.com | |
location @phoenix { | |
include proxy_params; | |
proxy_redirect off; | |
proxy_pass http://phoenix; | |
} | |
location /api { | |
try_files $uri @phoenix; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment