Skip to content

Instantly share code, notes, and snippets.

@agungyuliaji
Created January 18, 2018 04:36
Show Gist options
  • Save agungyuliaji/eb5281dc891457bb2f74a5080596a26c to your computer and use it in GitHub Desktop.
Save agungyuliaji/eb5281dc891457bb2f74a5080596a26c to your computer and use it in GitHub Desktop.
sample proxy
server {
listen 5500;
server_name localhost;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:5000;
}
location ~/app(.*)$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_pass http://127.0.0.1:3000$1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment