Skip to content

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

Update nginx config for resumable upload

Chocobozzzf2b5aa590ea3
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 385acac242..d03f146132 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -79,8 +79,10 @@ server {
}
location = /api/v1/videos/upload-resumable {
- client_max_body_size 0;
- proxy_request_buffering off;
+ if ($request_method = 'PUT') {
+ client_max_body_size 0;
+ proxy_request_buffering off;
+ }
try_files /dev/null @api;
}