aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx/peertube
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-18 18:45:27 +0100
committerChocobozzz <me@florianbigard.com>2018-01-18 18:45:27 +0100
commit2e866cc75de7f34aeca4575d8dea1af597131563 (patch)
tree1b260cbcbf02bf43176c8c85f9e46be64611a01e /support/nginx/peertube
parentfe452e0cab7482ce0991fcb4b506ae0dcb2eae2c (diff)
downloadPeerTube-2e866cc75de7f34aeca4575d8dea1af597131563.tar.gz
PeerTube-2e866cc75de7f34aeca4575d8dea1af597131563.tar.zst
PeerTube-2e866cc75de7f34aeca4575d8dea1af597131563.zip
Don't serve previews with nginx
We need to maintain a cache in the node process
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r--support/nginx/peertube2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 8973f2f24..098818e57 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -29,7 +29,7 @@ server {
29 alias /home/peertube/peertube-latest/client/dist/$1; 29 alias /home/peertube/peertube-latest/client/dist/$1;
30 } 30 }
31 31
32 location ~ ^/static/(thumbnails|avatars|previews)/(.*)$ { 32 location ~ ^/static/(thumbnails|avatars)/(.*)$ {
33 add_header Cache-Control "public, max-age=31536000, immutable"; 33 add_header Cache-Control "public, max-age=31536000, immutable";
34 34
35 alias /home/peertube/storage/$1/$2; 35 alias /home/peertube/storage/$1/$2;