Create redundancy endpoint

This commit is contained in:
Chocobozzz 2018-12-04 17:08:55 +01:00
parent 6040f87d14
commit b9fffa297f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 38 additions and 23 deletions

View file

@ -105,7 +105,7 @@ server {
}
# Bypass PeerTube for performance reasons. Could be removed
location /static/webseed {
location ~ ^/static/(webseed|redundancy)/ {
# Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client
limit_rate 800k;
@ -128,7 +128,12 @@ server {
access_log off;
}
alias /var/www/peertube/storage/videos;
root /var/www/peertube/storage;
rewrite ^/static/webseed/(.*)$ /videos/$1 break;
rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break;
try_files $uri /;
}
# Websocket tracker