]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/nginx/peertube
Don't leak passwords in log
[github/Chocobozzz/PeerTube.git] / support / nginx / peertube
index 8973f2f2448d83aa9f7e046ad3a407ccb70a629f..5261cddb4787ae87d1ddf49ae04909acab882f8b 100644 (file)
@@ -26,13 +26,13 @@ server {
   location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {
     add_header Cache-Control "public, max-age=31536000, immutable";
 
-    alias /home/peertube/peertube-latest/client/dist/$1;
+    alias /var/www/peertube/peertube-latest/client/dist/$1;
   }
 
-  location ~ ^/static/(thumbnails|avatars|previews)/(.*)$ {
+  location ~ ^/static/(thumbnails|avatars)/(.*)$ {
     add_header Cache-Control "public, max-age=31536000, immutable";
 
-    alias /home/peertube/storage/$1/$2;
+    alias /var/www/peertube/storage/$1/$2;
   }
 
   location / {
@@ -72,7 +72,7 @@ server {
       access_log off;
     }
 
-    alias /home/peertube/storage/videos;
+    alias /var/www/peertube/storage/videos;
   }
 
   # Websocket tracker