Diagnostic step 1
Reproduce the failing request directly against upstream: curl -v --max-time 300 http://127.0.0.1:3000/long-endpoint and compare timing with curl -v --max-time 300 https://your.domain/long-endpoint (through Nginx). Result meaning: If direct request to upstream completes but Nginx request fails at ~60s, the proxy (Nginx) or its timeouts are implicated. If both fail at same time, upstream likely closes the socket or has its own timeout/issue.