13 lines
614 B
Django/Jinja
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 %}
|