traefik/templates/marathon.tmpl

14 lines
554 B
Cheetah
Raw Normal View History

2015-09-10 14:14:08 +00:00
{{$apps := .Applications}}
2015-09-09 20:39:08 +00:00
[backends]{{range .Tasks}}
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
2015-10-23 16:59:08 +00:00
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort .}}"
weight = {{getWeight . $apps}}
2015-09-09 20:39:08 +00:00
{{end}}
[frontends]{{range .Applications}}
[frontends.frontend{{.ID | replace "/" "-"}}]
2015-09-09 21:09:16 +00:00
backend = "backend{{.ID | replace "/" "-"}}"
[frontends.frontend-{{.ID | replace "/" ""}}.routes.route-host-{{.ID | replace "/" ""}}]
rule = "{{getFrontendRule .}}"
value = "{{getFrontendValue .}}"
2015-09-09 20:39:08 +00:00
{{end}}