diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-18 18:45:27 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-18 18:45:27 +0100 |
commit | 2e866cc75de7f34aeca4575d8dea1af597131563 (patch) | |
tree | 1b260cbcbf02bf43176c8c85f9e46be64611a01e /support/doc/production.md | |
parent | fe452e0cab7482ce0991fcb4b506ae0dcb2eae2c (diff) | |
download | PeerTube-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/doc/production.md')
-rw-r--r-- | support/doc/production.md | 2 |
1 files changed, 1 insertions, 1 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; |