1
0
Fork 0

Fix regression on marathon backend

Signed-off-by: emile <emile@vauge.com>
This commit is contained in:
emile 2016-02-12 14:45:36 +01:00
parent 07c077cf94
commit c6c3af8099
No known key found for this signature in database
GPG key ID: D808B4C167352E59
4 changed files with 25 additions and 14 deletions

View file

@ -1,13 +1,13 @@
{{$apps := .Applications}}
[backends]{{range .Tasks}}
[backends.backend{{with index $apps 0 }}{{getBackend .}}{{end}}.servers.server-{{.ID | replace "." "-"}}]
[backends.backend{{getBackend . $apps}}.servers.server-{{.ID | replace "." "-"}}]
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort . $apps}}"
weight = {{getWeight . $apps}}
{{end}}
[frontends]{{range .Applications}}
[frontends.frontend{{.ID | replace "/" "-"}}]
backend = "backend{{getBackend .}}"
backend = "backend{{getFrontendBackend .}}"
passHostHeader = {{getPassHostHeader .}}
entryPoints = [{{range getEntryPoints .}}
"{{.}}",