aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-17 14:58:29 +0200
committerChocobozzz <me@florianbigard.com>2023-05-17 14:58:29 +0200
commitd381e967c4b7ded8765f8432fac4d109beb40105 (patch)
treed383c2ea53e3d17868f2b6819b00293d4b64aef4
parentd3ab2f63b6a26a7ae023c9dd900a60e426f6fa00 (diff)
downloadPeerTube-d381e967c4b7ded8765f8432fac4d109beb40105.tar.gz
PeerTube-d381e967c4b7ded8765f8432fac4d109beb40105.tar.zst
PeerTube-d381e967c4b7ded8765f8432fac4d109beb40105.zip
Add nginx config to receive runner job results
-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)