nginx: Reverse proxy
A short, tested nginx example for reverse proxy. Copy it and adjust the names and paths for your project.
nginx
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Find it in Zest
Search for “nginx reverse proxy” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.