From c103567428840888e3b8feec0f7fad0f2af2403f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:07:46 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 97a1549..99f1398 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -168,7 +168,7 @@ location ~ ^/static/(thumbnails|avatars)/ { try_files $uri @api; } -location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download { +location ~ ^(/static/(webseed|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; @@ -181,7 +181,7 @@ location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/downlo } # Bypass PeerTube for performance reasons. Optional. -location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ { +location ~ ^/static/(webseed|videos|redundancy|streaming-playlists)/ { limit_rate_after 5M; set $peertube_limit_rate 5M;