Don't serve previews with nginx
authorChocobozzz <me@florianbigard.com>
Thu, 18 Jan 2018 17:45:27 +0000 (18:45 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 18 Jan 2018 17:45:27 +0000 (18:45 +0100)
We need to maintain a cache in the node process

support/doc/production.md
support/nginx/peertube

index 2d746bba5a93a62c588ffa58e990bb82416b39ce..de5d67b4eebb2a70aa3f15272183c1f6c4a650ed 100644 (file)
@@ -103,7 +103,7 @@ server {
     alias /home/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;
index 8973f2f2448d83aa9f7e046ad3a407ccb70a629f..098818e57a0f28427d7df7b2df066d5df470ef9e 100644 (file)
@@ -29,7 +29,7 @@ server {
     alias /home/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;