Skip to content

Instantly share code, notes, and snippets.

@FromSi
Created July 2, 2022 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FromSi/6b57116882c7e73d93878a94e6390071 to your computer and use it in GitHub Desktop.
Save FromSi/6b57116882c7e73d93878a94e6390071 to your computer and use it in GitHub Desktop.
proxy nginx to nginx simple
server {
listen 80;
server_name localhost;
access_log off;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
port_in_redirect off;
proxy_connect_timeout 300;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment