We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01cf75c commit abfe520Copy full SHA for abfe520
nginx.tmpl
@@ -43,7 +43,7 @@ proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
43
upstream {{ .Host }} {
44
{{ range $container := .Containers }}
45
{{ $port := coalesce $container.Env.VIRTUAL_PORT (first $container.Addresses).Port "80" }}
46
- {{ $address := coalesce (first $container.Addresses).IP (first $container.Networks).IP }}
+ {{ $address := or (first $container.Addresses).IP (first $container.Networks).IP }}
47
server {{ $address }}:{{ $port }};
48
{{ end }}
49
}
0 commit comments