Skip to content

Instantly share code, notes, and snippets.

@isummation
Last active October 13, 2016 13:53
Show Gist options
  • Save isummation/29c8f83a2f015d7e5d168a72a5fcbf1e to your computer and use it in GitHub Desktop.
Save isummation/29c8f83a2f015d7e5d168a72a5fcbf1e to your computer and use it in GitHub Desktop.
# Main node proxy handler
location / {
proxy_pass http://127.0.0.1:3000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment