1
0
Fork 0

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;