1
0
Files
angie-conv-image/angie/autoconf/core-worker-env.txt.j2
2025-06-05 11:01:19 +03:00

13 lines
614 B
Django/Jinja

{# TODO: investigate error with "include" #}
{# {%- include 'core-worker-env.j2inc' -%} #}
{%- set w_env = ( j2cfg.core_worker_env or [] ) | any_to_env_dict -%}
{#- NB: "TZ" is always provided by Angie itself -#}
{%- set w_vars_passthrough = w_env | dict_empty_keys | list_diff(env_vars_preserve + ['TZ']) -%}
{%- set vars_passthrough = (env_vars_passthrough + w_vars_passthrough) | uniq | list_intersect(env | dict_keys) -%}
{#- NB: "TZ" is always provided by Angie itself -#}
{%- set all_vars = (env_vars_preserve + vars_passthrough + ['TZ']) | uniq -%}
{%- for k in all_vars %}
{{ k | ngx_esc }}
{%- endfor %}