Add min_free param to proxy_cache_path directive

This commit is contained in:
PJ 2021-12-01 10:38:25 +01:00
parent 081a8fab84
commit d1cbbb4ebb
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ http {
proxy_http_version 1.1;
# proxy cache definition
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=skynet:10m max_size=50g inactive=48h use_temp_path=off;
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=skynet:10m max_size=50g min_free=100g inactive=48h use_temp_path=off;
# this runs before forking out nginx worker processes
init_by_lua_block {