conf: add some missing escapes
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
configuration:
|
||||
|
||||
```nginx
|
||||
{%- import 'snip/cache.j2mod' as ngx_cache -%}
|
||||
{%- import 'snip/cache.j2mod' as _cache -%}
|
||||
|
||||
{%- set my_caches = (j2cfg.my_caches or []) -%}
|
||||
|
||||
{%- for h in my_caches %}
|
||||
{{ ngx_cache.proxy_cache_path(h.name, size='10m', levels='1:2', inactive=h.max_time) }}
|
||||
{{ _cache.proxy_cache_path(h.name, size='10m', levels='1:2', inactive=h.max_time) }}
|
||||
{%- endfor %}
|
||||
|
||||
server {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{%- import 'snip/cache.j2mod' as ngx_cache -%}
|
||||
{%- import 'snip/cache.j2mod' as _cache -%}
|
||||
{%- set my_caches = (j2cfg.my_caches or []) -%}
|
||||
|
||||
map $uri
|
||||
@@ -34,7 +34,7 @@ proxy_cache_use_stale error timeout invalid_header updating http_429 ht
|
||||
proxy_cache_revalidate on;
|
||||
|
||||
{%- for h in my_caches %}
|
||||
{{ ngx_cache.proxy_cache_path(h.name, size='10m', levels='1:2', inactive=h.max_time) }}
|
||||
{{ _cache.proxy_cache_path(h.name, size='10m', levels='1:2', inactive=h.max_time) }}
|
||||
{%- endfor %}
|
||||
|
||||
server {
|
||||
|
Reference in New Issue
Block a user