I am using nginx and node server to serve update requests. I get a gateway timeout when I request an update on large data. I saw this error from the nginx error logs :
I solved this by setting a higher timeout value for the proxy:
location / { proxy_read_timeout 300s; proxy_connect_timeout 75s; proxy_pass http://localhost:3000; }
Documentation: https://nginx.org/en/docs/http/ngx_http_proxy_module.html