Don't serve previews with nginx

We need to maintain a cache in the node process
This commit is contained in:
Chocobozzz 2018-01-18 18:45:27 +01:00
parent fe452e0cab
commit 2e866cc75d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View 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;

View 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;