Skip to content

Instantly share code, notes, and snippets.

@GriffinHeart
Created July 1, 2014 11:09
Show Gist options
  • Save GriffinHeart/5beb9cdced53cbe8aadb to your computer and use it in GitHub Desktop.
Save GriffinHeart/5beb9cdced53cbe8aadb to your computer and use it in GitHub Desktop.
upstream backend {
server unix:/tmp/unicorn.sock;
}
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://backend;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment