Nginx Reverse Proxy Documentation

Nginx is the public entry point for the whole platform.

What Nginx Does

Nginx listens on public ports 80 and 443. It receives browser requests, decides which backend should handle them and forwards traffic internally.

Current Routes

/              -> http://127.0.0.1:8080
/docs/         -> /opt/cloud-platform/docs/
/grafana/      -> http://127.0.0.1:3000
/prometheus/   -> http://127.0.0.1:9090/prometheus/
/portainer/    -> http://127.0.0.1:9000

Reverse Proxy Headers

Host: original hostname
X-Real-IP: client IP
X-Forwarded-For: proxy chain
X-Forwarded-Proto: http or https

Why Nginx Is Important

Single Entry Point

Only Nginx needs to be public for web traffic.

Virtual Hosts

Many domains can share one IP.

SSL Termination

Nginx handles certificates and encryption.

Load Balancing

Nginx can distribute traffic across upstream servers.

Commands

nginx -t
systemctl reload nginx
systemctl status nginx
tail -f /var/log/nginx/cloud-platform.access.log
tail -f /var/log/nginx/cloud-platform.error.log