diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-02 21:00:45 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-03-09 09:41:29 +0100 |
commit | 61b20252a087e6403b34ef9bdc4fe6fb05936dfb (patch) | |
tree | 7cec62ea7cb4bc7846ff0b3e479a69df2d97bb0a /support/nginx/peertube | |
parent | 26ede95e5772e52116b8c921fd3daab4d007897e (diff) | |
download | PeerTube-61b20252a087e6403b34ef9bdc4fe6fb05936dfb.tar.gz PeerTube-61b20252a087e6403b34ef9bdc4fe6fb05936dfb.tar.zst PeerTube-61b20252a087e6403b34ef9bdc4fe6fb05936dfb.zip |
Add Nginx configuration to redirect videos to an s3 bucket
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 8 |
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; |