Marathon provider
This commit is contained in:
parent
4a96f19221
commit
9a840d1904
5 changed files with 156 additions and 27 deletions
12
marathon.tmpl
Normal file
12
marathon.tmpl
Normal file
|
@ -0,0 +1,12 @@
|
|||
[backends]{{range .Tasks}}
|
||||
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
|
||||
url = "http://{{.Host}}:{{getPort .}}"
|
||||
{{end}}
|
||||
|
||||
[routes]{{range .Applications}}
|
||||
[routes.route{{.ID | replace "/" "-"}}]
|
||||
backend = ".backend{{.ID | replace "/" "-"}}"
|
||||
[routes.route-{{getHost .}}.rules.rule-host-{{getHost .}}]
|
||||
category = "Host"
|
||||
value = "{{getHost .}}.{{$.Domain}}"
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue