initial commit
This commit is contained in:
13
angie/snip/resolver.j2inc
Normal file
13
angie/snip/resolver.j2inc
Normal file
@@ -0,0 +1,13 @@
|
||||
{%- if env.NGX_RESOLVERS %}
|
||||
{%- if env.NGX_RESOLVER_STACK == 'any' %}
|
||||
resolver {{ env.NGX_RESOLVERS }} status_zone={{ resolver_status_zone }};
|
||||
{%- elif env.NGX_RESOLVER_STACK == 'ipv4' %}
|
||||
resolver {{ env.NGX_RESOLVERS }} status_zone={{ resolver_status_zone }} ipv4=on ipv6=off;
|
||||
{%- elif env.NGX_RESOLVER_STACK == 'ipv6' %}
|
||||
resolver {{ env.NGX_RESOLVERS }} status_zone={{ resolver_status_zone }} ipv4=off ipv6=on;
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if env.NGX_RESOLVER_TIMEOUT %}
|
||||
resolver_timeout {{ env.NGX_RESOLVER_TIMEOUT }};
|
||||
{%- endif %}
|
Reference in New Issue
Block a user