Increase Request Timeout in NGINX
For example, you want to increase request timeout to 300 seconds. Then you need to add proxy_read_timeout, proxy_connect_timeout, proxy_send_timeout directives to http or server block. Here the http block allows the changes in all server in NGINX. To make changes for all servers, edit the NGINX main configuration file and add the following content under http block. In case, you just want to increase request timeout for a specific server or subdomain, then add the directives for its server block only. Edit the specific server block configuration file and add the following settings: After making the changes, you must restart the NGINX service to apply changes. The systems running with Systemd can use the following command. All done, With the above changes, you have successfully increased the request timeout in NGINX server.
Conclusion
This tutorial helps you to increase request timeout in NGINX web server.