From 46386865184247255721c1765db892be1a72077a Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 12 Jan 2020 17:54:58 +0100 Subject: [PATCH] Add min uses for proxy cache --- templates/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/nginx.conf b/templates/nginx.conf index b019723..9f727f9 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -81,10 +81,12 @@ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD proxy_read_timeout 600; send_timeout 600; + # https://www.nginx.com/blog/nginx-caching-guide/ proxy_cache peertube_cache; proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; proxy_cache_revalidate on; proxy_cache_lock on; + proxy_cache_min_uses 5; #add_header X-Cached $upstream_cache_status; location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {