Last active
November 1, 2020 06:02
-
-
Save craftslab/ab7283a7120d9da374490bb70fc73d16 to your computer and use it in GitHub Desktop.
nginx config
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
upstream backend { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
error_log /var/log/nginx/debug.log debug; | |
location / { | |
proxy_pass http://backend; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment