Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx proxy pass
server {
server_name example.com www.example.com;
root /path/to/codebase;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
charset utf-8;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3000;
}
# Certbot config goes here!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.