API timeout issues
The API returns a 504 Gateway Timeout error when accessed through the nginx reverse proxy.
About this task
Symptom
Direct access to the FastAPI backend works, but external access through the nginx proxy returns a 504 Gateway Timeout error.
Cause
The nginx configuration uses the hostname metaltank to proxy requests to the FastAPI backend, but this hostname is not resolvable via DNS or /etc/hosts on the Provisioner server itself, causing nginx to fail connecting to the backend.
Procedure
Results
The nginx proxy can resolve the metaltank hostname and API requests are no longer timing out.