Welcome! Log In Create A New Profile


Limit upload time

Crosnier, Laurent via nginx
July 28, 2023 09:58AM
Hello team,

I am trying to block uploads when they reach 10 seconds.
I tried many directives, just like this:


location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto HTTPS;
proxy_set_header Host $host;
keepalive_timeout 10;
proxy_read_timeout 10s;
proxy_connect_timeout 10s;
proxy_send_timeout 10s;
send_timeout 10s;
keepalive_time 10s;
client_body_timeout 10s;

But none of these options seem to work, as in my logs, I'm still seeing my uploads exceeding 10 seconds:

********* - - [28/Jul/2023:15:22:03 +0200] "POST /api/knowledge-base/media/e9702102-f1ec-458c-8b49-6b3394bee29a HTTP/1.1" 201 775 "https://**********/knowledge-base/upload/?sortBy=name&sortDirection=asc&unit=19647654-acc7-493c-9b0f-d17f4542f339" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537..36 (KHTML, like Gecko) Chrome/ Safari/537.36" T="32.099" P="6967" XF="-"

I could not find any other directive to limit times for my upload request.
Is there another right way to do it ?




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security, AI-powered support capabilities, and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.

nginx mailing list
Subject Author Posted

Limit upload time

Crosnier, Laurent via nginx July 28, 2023 09:58AM

Re: Limit upload time

Maxim Dounin July 30, 2023 03:30PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready