diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-12 16:09:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-10-24 14:48:24 +0200 |
commit | 3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (patch) | |
tree | e7f1d12ef5dae1e1142c3a8d0b681c1dbbb0de10 /support/nginx/peertube | |
parent | 38a3ccc7f8ad0ea94362b58c732af7c387ab46be (diff) | |
download | PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.gz PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.zst PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.zip |
Put private videos under a specific subdirectory
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
214 | try_files $uri @api; | 214 | try_files $uri @api; |
215 | } | 215 | } |
216 | 216 | ||
217 | location ~ ^/static/(webseed|streaming-playlists)/private/ { | ||
218 | try_files /dev/null @api; | ||
219 | } | ||
220 | |||
217 | # Bypass PeerTube for performance reasons. Optional. | 221 | # Bypass PeerTube for performance reasons. Optional. |
218 | location ~ ^/static/(webseed|redundancy|streaming-playlists)/ { | 222 | location ~ ^/static/(webseed|redundancy|streaming-playlists)/ { |
219 | limit_rate_after 5M; | 223 | limit_rate_after 5M; |