Skip to content

Instantly share code, notes, and snippets.

@lahin31
Created April 17, 2024 06:01
Show Gist options
  • Save lahin31/c95b5b18fa073d96c6c530f1d7cfdf7b to your computer and use it in GitHub Desktop.
Save lahin31/c95b5b18fa073d96c6c530f1d7cfdf7b to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment