aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/nginx/peertube7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index aeeb5a612..05a59c072 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -98,6 +98,13 @@ server {
98 try_files /dev/null @api; 98 try_files /dev/null @api;
99 } 99 }
100 100
101 location ~ ^/api/v1/runners/jobs/[^/]+/(update|success)$ {
102 client_max_body_size 12G; # default is 1M
103 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)
104
105 try_files /dev/null @api;
106 }
107
101 location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) { 108 location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) {
102 client_max_body_size 6M; # default is 1M 109 client_max_body_size 6M; # default is 1M
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) 110 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)