aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
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
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')
-rw-r--r--support/doc/production.md2
-rw-r--r--support/nginx/peertube2
2 files changed, 2 insertions, 2 deletions
diff --git a/support/doc/production.md b/support/doc/production.md
index 2d746bba5..de5d67b4e 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -103,7 +103,7 @@ server {
103 alias /home/peertube/peertube-latest/client/dist/$1; 103 alias /home/peertube/peertube-latest/client/dist/$1;
104 } 104 }
105 105
106 location ~ ^/static/(thumbnails|avatars|previews)/(.*)$ { 106 location ~ ^/static/(thumbnails|avatars)/(.*)$ {
107 add_header Cache-Control "public, max-age=31536000, immutable"; 107 add_header Cache-Control "public, max-age=31536000, immutable";
108 108
109 alias /home/peertube/storage/$1/$2; 109 alias /home/peertube/storage/$1/$2;
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;