Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Last active September 20, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/8704e8e3b7631060492a22096ed58555 to your computer and use it in GitHub Desktop.
Save bcardarella/8704e8e3b7631060492a22096ed58555 to your computer and use it in GitHub Desktop.
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