Marathon provider listener
This commit is contained in:
parent
3dd168b465
commit
9c3e2c2edd
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ var MarathonFuncMap = template.FuncMap{
|
|||
return value
|
||||
}
|
||||
}
|
||||
return strings.TrimPrefix(application.ID, "/")
|
||||
return application.ID
|
||||
},
|
||||
"replace": func(s1 string, s2 string, s3 string) string {
|
||||
return strings.Replace(s3, s1, s2, -1)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
[routes]{{range .Applications}}
|
||||
[routes.route{{.ID | replace "/" "-"}}]
|
||||
backend = "backend{{.ID | replace "/" "-"}}"
|
||||
[routes.route-{{getHost .}}.rules.rule-host-{{getHost .}}]
|
||||
[routes.route-{{getHost . | replace "/" "-"}}.rules.rule-host-{{getHost . | replace "/" "-"}}]
|
||||
category = "Host"
|
||||
value = "{{getHost .}}.{{$.Domain}}"
|
||||
value = "{{getHost . | replace "/" "-"}}.{{$.Domain}}"
|
||||
{{end}}
|
Loading…
Reference in a new issue