aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-31 22:17:30 +0100
committerRigel Kent <sendmemail@rigelk.eu>2021-01-31 22:17:37 +0100
commite01146559acd32e009ad7d399a4af151fa0d4c52 (patch)
tree6992ca1bb3a9d30f9787ed377cda8beb76917a87 /support
parent7519c4a27b4212a93aa2d522cb6c3ac41f18c1a0 (diff)
downloadPeerTube-e01146559acd32e009ad7d399a4af151fa0d4c52.tar.gz
PeerTube-e01146559acd32e009ad7d399a4af151fa0d4c52.tar.zst
PeerTube-e01146559acd32e009ad7d399a4af151fa0d4c52.zip
fix nginx units
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 f3b05ca73..86564d33d 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 800k; # default is 1M 82 client_max_body_size 3M; # default is 1M
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) 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 11G 200M; # default is 1M 95 client_max_body_size 12G; # default is 1M
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) 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 }