From 2e866cc75de7f34aeca4575d8dea1af597131563 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Jan 2018 18:45:27 +0100 Subject: [PATCH] Don't serve previews with nginx We need to maintain a cache in the node process --- support/doc/production.md | 2 +- support/nginx/peertube | 2 +- 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 { 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; 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 { 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; -- 2.25.1