Disable nginx buffering on upload endpoints

To prevent timeout requests in peertube HTTP server
This commit is contained in:
Chocobozzz
2025-08-11 17:38:22 +02:00
parent da23ad1d09
commit d1a35e8421

View File

@@ -99,13 +99,14 @@ server {
# on a dedicated filesystem.
client_max_body_size 12G; # default is 1M
add_header X-File-Maximum-Size 8G always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
proxy_request_buffering off;
try_files /dev/null @api;
}
location ~ ^/api/v1/runners/jobs/[^/]+/(update|success)$ {
client_max_body_size 12G; # default is 1M
add_header X-File-Maximum-Size 8G always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
client_max_body_size 0;
proxy_request_buffering off;
try_files /dev/null @api;
}