server {
  listen 80;
  server_name _;

  # Frontend Angular (sirve HTML/CSS/JS)
  location / {
    proxy_pass http://frontend:80;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
  }

  # API backend
  location /api/ {
    proxy_pass http://backend:8000/api/;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

  # Salud
  location /healthz {
    return 200 "ok\n";
    add_header Content-Type text/plain;
  }
}
