You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# send logs to STDOUT so they can be seen using 'docker logs'
36
34
access_log /dev/stdout;
@@ -43,15 +41,14 @@ http {
43
41
}
44
42
45
43
# service definitions for each application
46
-
47
-
{{ range $service := .deis_services }}{{if$service.Nodes }}
44
+
{{$domains := .deis_domains }}{{ range $service := .deis_services }}{{if$service.Nodes }}
48
45
upstream{{ Base $service.Key }}{
49
46
{{ range $upstream := $service.Nodes }}server{{$upstream.Value }};
50
47
{{ end }}
51
48
}
52
49
53
50
server{
54
-
server_name~^{{ Base $service.Key }}\.(?<domain>.+)${{ range $domains := .deis_domains }}{{range $app_domains := $domains.Nodes }}{{ if eq (Base $service.Key) (Base $app_domains) }} {{ $app_domains.Value }}{{ end }}{{ end }}{{ end }};
51
+
server_name~^{{ Base $service.Key }}\.(?<domain>.+)${{ range $app_domains := $domains }}{{ if eq (Base $service.Key) (Base $app_domains.Key) }} {{ $app_domains.Value }}{{ end }}{{ end }};
0 commit comments