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;