Skip to content

Instantly share code, notes, and snippets.

@kaajavi
Created July 21, 2017 13:44
Show Gist options
  • Save kaajavi/32931b2d55bad95abafaea29b123fc78 to your computer and use it in GitHub Desktop.
Save kaajavi/32931b2d55bad95abafaea29b123fc78 to your computer and use it in GitHub Desktop.
Nginx config proxypass
client_max_body_size 500M;
location / {
proxy_set_header Host $host; # Another port: :8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8002/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment