initial commit
This commit is contained in:
12
angie/autoconf/core-worker-env.txt.j2
Normal file
12
angie/autoconf/core-worker-env.txt.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
{# 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 %}
|
Reference in New Issue
Block a user