mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 01:38:15 +00:00
refactor: move resolvers to $globals.config
This commit is contained in:
parent
946485e0b8
commit
a06cd1ae9a
@ -31,6 +31,7 @@
|
|||||||
{{- $_ := set $config "enable_http_on_missing_cert" ($globals.Env.ENABLE_HTTP_ON_MISSING_CERT | default "true") }}
|
{{- $_ := set $config "enable_http_on_missing_cert" ($globals.Env.ENABLE_HTTP_ON_MISSING_CERT | default "true") }}
|
||||||
{{- $_ := set $config "https_method" ($globals.Env.HTTPS_METHOD | default "redirect") }}
|
{{- $_ := set $config "https_method" ($globals.Env.HTTPS_METHOD | default "redirect") }}
|
||||||
{{- $_ := set $config "default_host" $globals.Env.DEFAULT_HOST }}
|
{{- $_ := set $config "default_host" $globals.Env.DEFAULT_HOST }}
|
||||||
|
{{- $_ := set $config "resolvers" $globals.Env.RESOLVERS }}
|
||||||
{{- $_ := set $globals "config" $config }}
|
{{- $_ := set $globals "config" $config }}
|
||||||
|
|
||||||
{{- $_ := set $globals "vhosts" (dict) }}
|
{{- $_ := set $globals "vhosts" (dict) }}
|
||||||
@ -519,8 +520,8 @@ access_log off;
|
|||||||
{{- template "ssl_policy" (dict "ssl_policy" $httpContextSslPolicy) }}
|
{{- template "ssl_policy" (dict "ssl_policy" $httpContextSslPolicy) }}
|
||||||
error_log /dev/stderr;
|
error_log /dev/stderr;
|
||||||
|
|
||||||
{{- if $globals.Env.RESOLVERS }}
|
{{- if $globals.config.resolvers }}
|
||||||
resolver {{ $globals.Env.RESOLVERS }};
|
resolver {{ $globals.config.resolvers }};
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (exists "/etc/nginx/proxy.conf") }}
|
{{- if (exists "/etc/nginx/proxy.conf") }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user