Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Disable nginx buffering on upload endpoints

Chocobozzzd1a35e842119
diff --git a/support/nginx/peertube b/support/nginx/peertube
index a697ba6b3f..a7397acff6 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -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;
}