Don't serve previews with nginx
We need to maintain a cache in the node process
This commit is contained in:
parent
fe452e0cab
commit
2e866cc75d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue