It may not be possible to disable it at all, yet a feasible workaround is to increase the execution time. On a nginx tutorial site, it was written:
If you want to increase time-limit for all-sites on your server, you can edit main nginx.conf file:
sudo vim /etc/nginx/nginx.conf
Add following in http{..} section
http {
fastcgi_read_timeout 3000;
proxy_read_timeout 3000;
}
and reload nginx config:
sudo service nginx reload
I have used a rather large value that is unlikely to happen, i.e. 999999 or using time units, to one day via 1d.
Beware that setting the value to 0 will cause an gateway timeout error immediately.
sudo vim /etc/php/7.3/fpm/pool.d/www.conf
request_terminate_timeout = 3000
sudo service nginx reload
sudo service php7.3-fpm reload