aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-28 16:15:19 +0100
committerRigel Kent <sendmemail@rigelk.eu>2021-01-28 16:15:45 +0100
commita59db27090b8dd39971e04704991fd11dabf038b (patch)
tree3822f852674d34841c10345112263005f38531f6 /support
parent80ac2e5548bf5167d2f243a3cb0e993c75456d76 (diff)
downloadPeerTube-a59db27090b8dd39971e04704991fd11dabf038b.tar.gz
PeerTube-a59db27090b8dd39971e04704991fd11dabf038b.tar.zst
PeerTube-a59db27090b8dd39971e04704991fd11dabf038b.zip
take into account mime-encoding in nginx client_max_body_size
fixes #3656
Diffstat (limited to 'support')
-rw-r--r--support/nginx/peertube8
1 files changed, 4 insertions, 4 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index fd3ff1534..f3b05ca73 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -79,8 +79,8 @@ server {
79 } 79 }
80 80
81 location ~ ^/api/v1/(videos|video-playlists|users/me/avatar/pick)$ { 81 location ~ ^/api/v1/(videos|video-playlists|users/me/avatar/pick)$ {
82 client_max_body_size 2M; # default is 1M 82 client_max_body_size 2M 800k; # default is 1M
83 add_header X-File-Maximum-Size 2M always; # inform backend of the set value in bytes 83 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)
84 84
85 try_files /dev/null @api; 85 try_files /dev/null @api;
86 } 86 }
@@ -92,8 +92,8 @@ server {
92 # Note that temporary space is needed equal to the total size of all concurrent uploads. 92 # Note that temporary space is needed equal to the total size of all concurrent uploads.
93 # This data gets stored in /var/lib/nginx by default, so you may want to put this directory 93 # This data gets stored in /var/lib/nginx by default, so you may want to put this directory
94 # on a dedicated filesystem. 94 # on a dedicated filesystem.
95 client_max_body_size 8G; # default is 1M 95 client_max_body_size 11G 200M; # default is 1M
96 add_header X-File-Maximum-Size 8G always; # inform backend of the set value in bytes 96 add_header X-File-Maximum-Size 8G always; # inform backend of the set value in bytes before mime-encoding (x * 1.4 = client_max_body_size)
97 97
98 try_files /dev/null @api; 98 try_files /dev/null @api;
99 } 99 }