From 3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Oct 2022 16:09:02 +0200 Subject: Put private videos under a specific subdirectory --- support/nginx/peertube | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'support/nginx') diff --git a/support/nginx/peertube b/support/nginx/peertube index f6f754b58..cf200ba00 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -214,6 +214,10 @@ server { try_files $uri @api; } + location ~ ^/static/(webseed|streaming-playlists)/private/ { + try_files /dev/null @api; + } + # Bypass PeerTube for performance reasons. Optional. location ~ ^/static/(webseed|redundancy|streaming-playlists)/ { limit_rate_after 5M; -- cgit v1.2.3