From 7796ee25bce4907a08bf9999ada4640e96958f9e Mon Sep 17 00:00:00 2001 From: VC Date: Mon, 19 Aug 2024 17:28:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:=20fix=20runner=20413=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/nginx/templates/vhosts/p.nintendojo.fr.conf.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/nginx/templates/vhosts/p.nintendojo.fr.conf.j2 b/roles/nginx/templates/vhosts/p.nintendojo.fr.conf.j2 index 5221bc6..e2f3c61 100644 --- a/roles/nginx/templates/vhosts/p.nintendojo.fr.conf.j2 +++ b/roles/nginx/templates/vhosts/p.nintendojo.fr.conf.j2 @@ -54,6 +54,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)