Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Chigozie-Gerald/91573fce963880b61afea0151b45050f to your computer and use it in GitHub Desktop.
Save Chigozie-Gerald/91573fce963880b61afea0151b45050f to your computer and use it in GitHub Desktop.
Broom bookings NGINX config for Public
# nextjs files at specified port with process managed by pm2
location ^/(service|cart|services|checkout)($|/|\?.*) {
proxy_pass http://127.0.0.1:6060;
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
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 $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment