Skip to content

Instantly share code, notes, and snippets.

@craftslab
Last active November 1, 2020 06:02
Show Gist options
  • Save craftslab/ab7283a7120d9da374490bb70fc73d16 to your computer and use it in GitHub Desktop.
Save craftslab/ab7283a7120d9da374490bb70fc73d16 to your computer and use it in GitHub Desktop.
nginx config
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