diff options
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 8 |
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 | } |