mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
Merge pull request #257 from fflorent/patch-1
[nginx] Increase max image/caption/torrent upload size
This commit is contained in:
commit
616df42ddf
1 changed files with 6 additions and 6 deletions
|
@ -20,10 +20,10 @@ location @api {
|
|||
}
|
||||
|
||||
location = /api/v1/videos/upload-resumable {
|
||||
client_max_body_size 0;
|
||||
proxy_request_buffering off;
|
||||
try_files /dev/null @api;
|
||||
}
|
||||
client_max_body_size 0;
|
||||
proxy_request_buffering off;
|
||||
try_files /dev/null @api;
|
||||
}
|
||||
|
||||
location / {
|
||||
if ($scheme = http) {
|
||||
|
@ -50,8 +50,8 @@ location = /api/v1/videos/upload {
|
|||
}
|
||||
|
||||
location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) {
|
||||
client_max_body_size 3M; # default is 1M
|
||||
more_set_headers "X-File-Maximum-Size : 2M always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
|
||||
client_max_body_size 6M; # default is 1M
|
||||
more_set_headers "X-File-Maximum-Size : 4M always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size)
|
||||
|
||||
try_files /dev/null @api;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue