mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-10 12:26:35 +03:00
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
@ -103,7 +103,7 @@ server {
|
|||||||
alias /home/peertube/peertube-latest/client/dist/$1;
|
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";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
|
|
||||||
alias /home/peertube/storage/$1/$2;
|
alias /home/peertube/storage/$1/$2;
|
||||||
|
@ -29,7 +29,7 @@ server {
|
|||||||
alias /home/peertube/peertube-latest/client/dist/$1;
|
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";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
|
|
||||||
alias /home/peertube/storage/$1/$2;
|
alias /home/peertube/storage/$1/$2;
|
||||||
|
Loading…
Reference in New Issue
Block a user