ansible-roles/roles/nginx/templates/ansible_conf.d/10-cache.conf.j2

12 lines
285 B
Django/Jinja

proxy_cache_path /var/cache/nginx
levels=1:2
keys_zone=cache_std:5m
max_size={{ nginx_cache_size }}
inactive=300m
use_temp_path=off;
map $is_proxy_cacheable $no_cache {
default 1;
1 0;
}