diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-10 15:27:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-10 15:27:29 +0200 |
commit | f2b5aa590ea3ff7ab24415df5c5ce7fcb73c5acc (patch) | |
tree | 4ba47df9b331ec931a33a50662cc5329305f4f11 /support/nginx | |
parent | 66615377644fc71a0f38e1b1edc31865e7d7427a (diff) | |
download | PeerTube-f2b5aa590ea3ff7ab24415df5c5ce7fcb73c5acc.tar.gz PeerTube-f2b5aa590ea3ff7ab24415df5c5ce7fcb73c5acc.tar.zst PeerTube-f2b5aa590ea3ff7ab24415df5c5ce7fcb73c5acc.zip |
Update nginx config for resumable upload
Diffstat (limited to 'support/nginx')
-rw-r--r-- | support/nginx/peertube | 6 |
1 files changed, 4 insertions, 2 deletions
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 { | |||
79 | } | 79 | } |
80 | 80 | ||
81 | location = /api/v1/videos/upload-resumable { | 81 | location = /api/v1/videos/upload-resumable { |
82 | client_max_body_size 0; | 82 | if ($request_method = 'PUT') { |
83 | proxy_request_buffering off; | 83 | client_max_body_size 0; |
84 | proxy_request_buffering off; | ||
85 | } | ||
84 | 86 | ||
85 | try_files /dev/null @api; | 87 | try_files /dev/null @api; |
86 | } | 88 | } |