Performance tuning
Global · server
integer · seconds
proxy_timeout
Timeout for upstream requests to the origin.
- Config key
proxy_timeout- Scope
- Global · server
- Type
- integer · seconds
- Default
45
The maximum time the proxy waits on an origin before giving up on a request. Too low and slow-but-valid responses are cut off; too high and a stuck backend ties up resources. The default is 45 seconds.
⚡Tune to your workload
Lower it for snappy APIs so failures surface fast; raise it for endpoints that legitimately take a while (report generation, large uploads).
proxy_timeout = 45