mirror of
https://yerbamate.ml/nutomic/peertube.social
synced 2024-11-25 01:18:20 -05:00
Add min uses for proxy cache
This commit is contained in:
parent
fcd4623eac
commit
4638686518
@ -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 New Issue
Block a user