When we proxy a request to another service in nginx, and the request takes a long time
to response,
nginx will return a 504 gateway timeout response.
The default timeout in nginx config is 60s.
To prevent the 504 error, add these configs in nginx conf file:
When we proxy a request to another service in nginx, and the request takes a long time to response, nginx will return a 504 gateway timeout response. The default timeout in nginx config is 60s. To prevent the 504 error, add these configs in nginx conf file: