Nginx timeouts are useful for controlling how long a connection stays open.
Add the following to your location block:
location /<path> {
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
fastcgi_read_timeout 1800;
}
Timeout value is in seconds i.e. 1800 seconds.
Verify the Nginx config syntax is correct using:
nginx -t -c nginx.conf
Reload Nginx:
nginx -s reload