|
@@ -13,7 +13,6 @@
|
|
|
|
|
|
{{- $config := dict }}
|
|
{{- $config := dict }}
|
|
{{- $_ := set $config "nginx_proxy_version" $.Env.NGINX_PROXY_VERSION }}
|
|
{{- $_ := set $config "nginx_proxy_version" $.Env.NGINX_PROXY_VERSION }}
|
|
-{{- $_ := set $config "nginx_container_label" ($.Env.NGINX_CONTAINER_LABEL | default "com.github.nginx-proxy.nginx-proxy.nginx") }}
|
|
|
|
{{- $_ := set $config "default_cert_ok" (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
|
|
{{- $_ := set $config "default_cert_ok" (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
|
|
{{- $_ := set $config "external_http_port" ($globals.Env.HTTP_PORT | default "80") }}
|
|
{{- $_ := set $config "external_http_port" ($globals.Env.HTTP_PORT | default "80") }}
|
|
{{- $_ := set $config "external_https_port" ($globals.Env.HTTPS_PORT | default "443") }}
|
|
{{- $_ := set $config "external_https_port" ($globals.Env.HTTPS_PORT | default "443") }}
|
|
@@ -47,9 +46,9 @@
|
|
{{- $_ := set $globals "networks" (dict) }}
|
|
{{- $_ := set $globals "networks" (dict) }}
|
|
|
|
|
|
{{- $currentContainer := where $globals.containers "ID" $globals.Docker.CurrentContainerID | first }}
|
|
{{- $currentContainer := where $globals.containers "ID" $globals.Docker.CurrentContainerID | first }}
|
|
-{{- $labeledContainer := whereLabelExists $globals.containers $globals.config.nginx_container_label | first }}
|
|
|
|
|
|
+{{- $labeledContainer := whereLabelExists $globals.containers "com.github.nginx-proxy.nginx-proxy.nginx" | first }}
|
|
{{- $_ := set $globals "NetworkContainer" ($labeledContainer | default $currentContainer) }}
|
|
{{- $_ := set $globals "NetworkContainer" ($labeledContainer | default $currentContainer) }}
|
|
-# Networks available to the container labeled "{{ $globals.config.nginx_container_label }}" or the one running docker-gen
|
|
|
|
|
|
+# Networks available to the container labeled "com.github.nginx-proxy.nginx-proxy.nginx" or the one running docker-gen
|
|
# (which are assumed to match the networks available to the container running nginx):
|
|
# (which are assumed to match the networks available to the container running nginx):
|
|
{{- /*
|
|
{{- /*
|
|
* Note:
|
|
* Note:
|
|
@@ -64,7 +63,7 @@
|
|
# (none)
|
|
# (none)
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- else }}
|
|
-# /!\ WARNING: Failed to find the Docker container labeled "{{ $globals.config.nginx_container_label }}" or the one running docker-gen.
|
|
|
|
|
|
+# /!\ WARNING: Failed to find the Docker container labeled "com.github.nginx-proxy.nginx-proxy.nginx" or the one running docker-gen.
|
|
# All upstream (backend) application containers will appear to be unreachable.
|
|
# All upstream (backend) application containers will appear to be unreachable.
|
|
# Try removing the -only-exposed and -only-published arguments to docker-gen if you pass either of those.
|
|
# Try removing the -only-exposed and -only-published arguments to docker-gen if you pass either of those.
|
|
# See https://github.com/nginx-proxy/docker-gen/issues/458.
|
|
# See https://github.com/nginx-proxy/docker-gen/issues/458.
|