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 .}}"
|
2015-10-23 07:49:19 +00:00
|
|
|
weight = {{getWeight . $apps}}
|
2015-09-09 20:39:08 +00:00
|
|
|
{{end}}
|
|
|
|
|
2015-09-15 14:09:21 +00:00
|
|
|
[frontends]{{range .Applications}}
|
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
2015-09-09 21:09:16 +00:00
|
|
|
backend = "backend{{.ID | replace "/" "-"}}"
|
2015-10-23 07:49:19 +00:00
|
|
|
[frontends.frontend-{{.ID | replace "/" ""}}.routes.route-host-{{.ID | replace "/" ""}}]
|
|
|
|
rule = "{{getFrontendRule .}}"
|
|
|
|
value = "{{getFrontendValue .}}"
|
2015-09-09 20:39:08 +00:00
|
|
|
{{end}}
|