aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/nginx/peertube8
1 files changed, 8 insertions, 0 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 14e60ed7d..a17868c5a 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -152,6 +152,14 @@ server {
152 152
153 root /var/www/peertube/storage; 153 root /var/www/peertube/storage;
154 154
155 # Use this in tandem with fuse-mounting i.e. https://docs.joinpeertube.org/#/admin-remote-storage
156 # to serve files directly from a public bucket without proxying.
157 # Assumes you have buckets named after the storage subdirectories, i.e. 'videos', 'redundancy', etc.
158 #set $cdn <your S3-compatiable bucket public url mounted via fuse>;
159 #rewrite ^/static/webseed/(.*)$ $cdn/videos/$1 redirect;
160 #rewrite ^/static/redundancy/(.*)$ $cdn/redundancy/$1 redirect;
161 #rewrite ^/static/streaming-playlists/(.*)$ $cdn/streaming-playlists/$1 redirect;
162
155 rewrite ^/static/webseed/(.*)$ /videos/$1 break; 163 rewrite ^/static/webseed/(.*)$ /videos/$1 break;
156 rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break; 164 rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break;
157 rewrite ^/static/streaming-playlists/(.*)$ /streaming-playlists/$1 break; 165 rewrite ^/static/streaming-playlists/(.*)$ /streaming-playlists/$1 break;