we have the following timeout for external bot connecting with our https://statorium.com site https://clip2net.com/s/4lIWTcC
agency suggest increasing that timeout setting but we cannot find that under our droplet settings. We run Ubuntu 23.10 x64 on droplet, use cloudflare
can you suggest where we shall search for timeout settings please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey there!
The timeout settings for external connections on your Ubuntu server aren’t managed directly through the Droplet settings on DigitalOcean but can be configured in a few key places on your server itself which you have root access to.
As you’re using Cloudflare and an Ubuntu Droplet, here’s where you can look to increase the timeout:
Cloudflare has a default timeout of 100 seconds for HTTP requests. Unfortunately, this is a fixed limit and can’t be extended directly through Cloudflare’s free plan. If you’re on a paid plan, you may have options to adjust this under “Load Balancing” or “Workers”, but it’s still limited. For more information check out their docs here: https://community.cloudflare.com/t/increase-cloudflare-max-request-duration/482873
Nginx or Apache Timeout Settings on your Droplet:
For Nginx:
/etc/nginx/nginx.conf or within /etc/nginx/sites-available/).proxy_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
sudo systemctl restart nginx
For Apache:
/etc/apache2/apache2.conf or in /etc/apache2/sites-available/.Timeout 300
ProxyTimeout 300
sudo systemctl restart apache2
PHP Timeout Settings:
php.ini, often located at /etc/php/8.2/fpm/php.ini or /etc/php/8.2/apache2/php.ini).max_execution_time = 300
max_input_time = 300
sudo systemctl restart php8.2-fpm
Feel free to share more details on the services that you are using if those are not the ones you use.
Also worth mentioning that, extending timeout settings too much can sometimes lead to performance issues, as long connections consume resources. Make sure these settings match your server’s capacity like RAM and CPU.
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.