From 34555bebf8e2a2caf2cb1cfd85280d140fcc3802 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2023 11:39:59 +0200 Subject: Migrate from webseed to web-videos --- support/doc/api/openapi.yaml | 6 +++--- support/nginx/peertube | 12 +++--------- 2 files changed, 6 insertions(+), 12 deletions(-) (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index b2303bdd1..2dfad9987 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -366,7 +366,7 @@ x-tagGroups: - Runners paths: - '/static/webseed/{filename}': + '/static/web-videos/{filename}': get: tags: - Static Video Files @@ -378,11 +378,11 @@ paths: description: successful operation '404': description: not found - '/static/webseed/private/{filename}': + '/static/web-videos/private/{filename}': get: tags: - Static Video Files - summary: Get private Web Video video file + summary: Get private Web Video file parameters: - $ref: '#/components/parameters/staticFilename' - $ref: '#/components/parameters/videoFileToken' diff --git a/support/nginx/peertube b/support/nginx/peertube index f5b9d131a..822f6f9ac 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -199,7 +199,7 @@ server { alias /var/www/peertube/peertube-latest/client/dist/$1; } - location ~ ^(/static/(webseed|streaming-playlists)/private/)|^/download { + location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download { # We can't rate limit a try_files directive, so we need to duplicate @api proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -212,16 +212,10 @@ server { } # Bypass PeerTube for performance reasons. Optional. - location ~ ^/static/(webseed|redundancy|streaming-playlists)/ { + location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ { limit_rate_after 5M; - # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client - set $peertube_limit_rate 800k; - - # Increase rate limit in HLS mode, because we don't have multiple simultaneous connections - if ($request_uri ~ -fragmented.mp4$) { - set $peertube_limit_rate 5M; - } + set $peertube_limit_rate 5M; # Use this line with nginx >= 1.17.0 limit_rate $peertube_limit_rate; -- cgit v1.2.3