server {
  listen 80;
  server_name _;

  location /api/ {
    client_max_body_size 50m;
    proxy_pass http://api:8080/api/;
    proxy_http_version 1.1;
    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;
  }

  location /healthz {
    proxy_pass http://api:8080/healthz;
  }

  location / {
    proxy_pass http://web:80;
    proxy_set_header Host $host;
  }
}
