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,7 +1,5 @@
## sourced by conf/fastcgi/headers.conf
## hide response headers
{%- set resp_hdr_dict = j2cfg.response_headers or {} -%}
{%- set resp_hdr_list = resp_hdr_dict | dict_keys -%}
{%- for h in resp_hdr_list %}
fastcgi_hide_header {{ h | ngx_esc }};
{%- for h in j2cfg.response_headers | dict_keys | http_header | uniq_str_list %}
fastcgi_hide_header {{ h }};
{%- endfor %}