add caching feature
This commit is contained in:
parent
d641af6347
commit
128fbc8258
3 changed files with 22 additions and 0 deletions
6
templates/caches.conf.j2
Normal file
6
templates/caches.conf.j2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% for cache in nginx.caches %}
|
||||
{% set c = {}|combine(nginx_caches_defaults, nginx.caches[cache], recursive=True) %}
|
||||
# {{ cache }}
|
||||
proxy_cache_path /var/cache/nginx/{{ cache }} levels=1:2 keys_zone={{ cache }}:{{ c.keys_zone_size }} max_size={{ c.cache_size }} inactive={{ c.inactive_time }} use_temp_path=off;
|
||||
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue