From b30013aa67737118fbc5883f69077ad63a9d2af2 Mon Sep 17 00:00:00 2001 From: Mathieu Gauthier-Pilote Date: Thu, 24 Aug 2023 15:49:48 -0400 Subject: [PATCH] Pour PeerTube 5.2.0 --- webapps/peertube/templates/production.yaml.j2 | 1 + webapps/peertube/templates/vhost.conf.j2 | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/webapps/peertube/templates/production.yaml.j2 b/webapps/peertube/templates/production.yaml.j2 index 48da060a..a2edee5e 100644 --- a/webapps/peertube/templates/production.yaml.j2 +++ b/webapps/peertube/templates/production.yaml.j2 @@ -119,6 +119,7 @@ defaults: # From the project root directory storage: tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... + tmp_persistent: '/var/www/peertube/storage/tmp-persistent/' # As tmp but the directory is not cleaned up between PeerTube restarts bin: '/var/www/peertube/storage/bin/' avatars: '/var/www/peertube/storage/avatars/' videos: '/var/www/peertube/storage/videos/' diff --git a/webapps/peertube/templates/vhost.conf.j2 b/webapps/peertube/templates/vhost.conf.j2 index aaf6b8c6..0674772d 100644 --- a/webapps/peertube/templates/vhost.conf.j2 +++ b/webapps/peertube/templates/vhost.conf.j2 @@ -105,6 +105,13 @@ server { try_files /dev/null @api; } + location ~ ^/api/v1/runners/jobs/[^/]+/(update|success)$ { + client_max_body_size 12G; # default is 1M + 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) + + try_files /dev/null @api; + } + location ~ ^/api/v1/(videos|video-playlists|video-channels|users/me) { client_max_body_size 6M; # default is 1M 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)