{%- 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 %}