NGINX Timeout Configuration

dudefromearth

New Member
Joined
Dec 14, 2022
Messages
2
Reaction score
0
Credits
21
Hello Everyone

I would like to know if it is possible to configure NGINX to set a timeout for long file uploads.

I have already tried the following parameters in nginx.conf but doesn't work:

uwsgi_connect_timeout 10s;
uwsgi_read_timeout 10s;
proxy_connect_timeout 10s;
proxy_send_timeout 10s;
proxy_read_timeout 10s;
fastcgi_send_timeout 10s;
fastcgi_read_timeout 10s;

Does anyone have the right parameter?
 


How long.. is a long upload?
I regularly upload 9 or 10GB files, and it never timesout.

The parameters you set in your example would only affect the uploads if you are using
a proxy or cgi_bin application to do the uploads. But you shouldn't have to change any of those.

Do you have a send_timeout set?
Do you have a client_max_body_size set?
 
How long.. is a long upload?
I regularly upload 9 or 10GB files, and it never timesout.

The parameters you set in your example would only affect the uploads if you are using
a proxy or cgi_bin application to do the uploads. But you shouldn't have to change any of those.

Do you have a send_timeout set?
Do you have a client_max_body_size set?
I would like to set a timeout for long file uploads.

As an example: I'm uploading a 10GB file, but if the upload takes longer than 20 seconds, I want Nginx to stop.

I have set the send_timeout and also the client_max_body_size, even though I set them the file is still uploading.
 
Browsers aren't actually designed for big file-uploads, that's the reason file-sharing protocols such as ftp(s) and sftp were created. Although I think now days browsers can deal with a lot more than in the time browsers were still 32 bit.
 

Members online


Latest posts

Top