From 8dbcbaa8134900f5299188ff426f29ccbd886d42 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 29 Jul 2021 18:13:37 +0200 Subject: [PATCH] Increase max image/caption/torrent upload size See: https://github.com/Chocobozzz/PeerTube/commit/a13df19d578d3c5bf8babfc1864e45fbfda98a47 --- conf/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f0cdca6..94f01fd 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -20,10 +20,10 @@ location @api { } location = /api/v1/videos/upload-resumable { - client_max_body_size 0; - proxy_request_buffering off; - try_files /dev/null @api; - } + client_max_body_size 0; + proxy_request_buffering off; + try_files /dev/null @api; +} location / { if ($scheme = http) { @@ -50,8 +50,8 @@ location = /api/v1/videos/upload { } location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) { - client_max_body_size 3M; # default is 1M - more_set_headers "X-File-Maximum-Size : 2M always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size) + client_max_body_size 6M; # default is 1M + more_set_headers "X-File-Maximum-Size : 4M always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size) try_files /dev/null @api; }