From f2b5aa590ea3ff7ab24415df5c5ce7fcb73c5acc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 May 2021 15:27:29 +0200 Subject: Update nginx config for resumable upload --- support/nginx/peertube | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'support/nginx') diff --git a/support/nginx/peertube b/support/nginx/peertube index 385acac24..d03f14613 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; } -- cgit v1.2.3