forked from nutomic/peertube.social
Add min uses for proxy cache
This commit is contained in:
parent
fcd4623eac
commit
4638686518
1 changed files with 2 additions and 0 deletions
|
@ -81,10 +81,12 @@ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
send_timeout 600;
|
send_timeout 600;
|
||||||
|
|
||||||
|
# https://www.nginx.com/blog/nginx-caching-guide/
|
||||||
proxy_cache peertube_cache;
|
proxy_cache peertube_cache;
|
||||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||||
proxy_cache_revalidate on;
|
proxy_cache_revalidate on;
|
||||||
proxy_cache_lock on;
|
proxy_cache_lock on;
|
||||||
|
proxy_cache_min_uses 5;
|
||||||
#add_header X-Cached $upstream_cache_status;
|
#add_header X-Cached $upstream_cache_status;
|
||||||
|
|
||||||
location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {
|
location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {
|
||||||
|
|
Loading…
Reference in a new issue