1
0

treewide: improve template expansion

also: support *.toml as extra configuration dictionaries
This commit is contained in:
2025-06-19 06:00:31 +03:00
parent 0338c7fffe
commit 612532576b
29 changed files with 758 additions and 607 deletions

View File

@@ -1,6 +1,5 @@
## sourced by autoconf/http-response-headers.conf
## add response headers
{%- set resp_hdr_dict = j2cfg.response_headers or {} -%}
{%- for h, v in resp_hdr_dict|dictsort %}
add_header {{ h | ngx_esc }} {{ v | ngx_esc }};
{%- for h, v in j2cfg.response_headers | http_header | dictsort %}
add_header {{ h }} {{ v | ngx_esc }};
{%- endfor %}