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 :
You can increase the timeout in node like so.
app.post('/slow/request', function(req, res){ req.connection.setTimeout(100000); //100 seconds ... }