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))$ {