nginx request timeout code example
Example 1: increase nginx timeout
step 1: $sudo nano /etc/nginx/nginx.conf
step 2: add following config to http section and save it.
http {
...
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
...
}
step 3: $sudo service nginx reload
Example 2: nginx unlimited timeout
http {
fastcgi_read_timeout 300;
proxy_read_timeout 300;
}