aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx/peertube
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-08 10:01:28 +0200
committerChocobozzz <me@florianbigard.com>2021-06-08 10:01:50 +0200
commita13df19d578d3c5bf8babfc1864e45fbfda98a47 (patch)
tree52d464a0c83acce86dcd023c23b6fd0d90dc70ec /support/nginx/peertube
parentea54cd04c1ff0e55651cd5fb1a83672acde68604 (diff)
downloadPeerTube-a13df19d578d3c5bf8babfc1864e45fbfda98a47.tar.gz
PeerTube-a13df19d578d3c5bf8babfc1864e45fbfda98a47.tar.zst
PeerTube-a13df19d578d3c5bf8babfc1864e45fbfda98a47.zip
Increase max image/caption/torrent upload size
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r--support/nginx/peertube4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 7c95c130c..827a57e93 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -99,8 +99,8 @@ server {
99 } 99 }
100 100
101 location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) { 101 location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) {
102 client_max_body_size 3M; # default is 1M 102 client_max_body_size 6M; # default is 1M
103 add_header X-File-Maximum-Size 2M always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size) 103 add_header X-File-Maximum-Size 4M always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
104 104
105 try_files /dev/null @api; 105 try_files /dev/null @api;
106 } 106 }