Skip to content

Instantly share code, notes, and snippets.

@mgilangjanuar
Last active November 5, 2023 00:48
Show Gist options
  • Save mgilangjanuar/32dda9b419f55c77cd89bb26885bf368 to your computer and use it in GitHub Desktop.
Save mgilangjanuar/32dda9b419f55c77cd89bb26885bf368 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name [domain name];
location / {
proxy_pass http://127.0.0.1:[port];
proxy_set_header Host $host;
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment