1
0
Fork 0
This commit is contained in:
emile 2015-09-10 16:14:08 +02:00
parent 46ef489b03
commit 4dc5b34122
8 changed files with 40 additions and 11 deletions

View file

@ -1,6 +1,13 @@
{{$apps := .Applications}}
[backends]{{range .Tasks}}
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
url = "http://{{.Host}}:{{getPort .}}"
{{$appID := .AppID}}
{{range $apps}}
{{if eq $appID .ID}}
weight = {{getWeight .}}
{{end}}
{{end}}
{{end}}
[routes]{{range .Applications}}