aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx/peertube
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-04 17:08:55 +0100
committerChocobozzz <me@florianbigard.com>2018-12-04 17:08:55 +0100
commitb9fffa297f49a84df8ffd0d7b842599bc88a8e3e (patch)
tree49a12ebebf4d533e8b273abbb9492350a233101d /support/nginx/peertube
parent6040f87d143a5fa01db79867ece8197c3ce7be47 (diff)
downloadPeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.tar.gz
PeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.tar.zst
PeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.zip
Create redundancy endpoint
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r--support/nginx/peertube9
1 files changed, 7 insertions, 2 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index b00031133..e0b006088 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -105,7 +105,7 @@ server {
105 } 105 }
106 106
107 # Bypass PeerTube for performance reasons. Could be removed 107 # Bypass PeerTube for performance reasons. Could be removed
108 location /static/webseed { 108 location ~ ^/static/(webseed|redundancy)/ {
109 # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client 109 # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client
110 limit_rate 800k; 110 limit_rate 800k;
111 111
@@ -128,7 +128,12 @@ server {
128 access_log off; 128 access_log off;
129 } 129 }
130 130
131 alias /var/www/peertube/storage/videos; 131 root /var/www/peertube/storage;
132
133 rewrite ^/static/webseed/(.*)$ /videos/$1 break;
134 rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break;
135
136 try_files $uri /;
132 } 137 }
133 138
134 # Websocket tracker 139 # Websocket tracker