Demo: explain a reverse proxy before deployment
For an API gateway or edge proxy, reviewers need to know which path reaches which upstream. A diagram makes that relationship visible without forcing everyone to parse nginx syntax.
- Group locations by server_name when multiple domains share one file.
- Flag catch-all locations because they can hide more specific routes.
- Compare proxy_pass targets with service names used in Docker Compose or Kubernetes.
upstream api_backend {
server api:8080;
}
server {
server_name example.com;
location /api/ { proxy_pass http://api_backend; }
location /assets/ { root /var/www; }
}This source should produce a server node, an upstream node, and separate route edges for /api/ and /assets/.