Created
July 2, 2022 12:19
-
-
Save FromSi/6b57116882c7e73d93878a94e6390071 to your computer and use it in GitHub Desktop.
proxy nginx to nginx simple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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