2015-09-10 16:14:08 +02:00
|
|
|
{{$apps := .Applications}}
|
2015-09-09 22:39:08 +02:00
|
|
|
[backends]{{range .Tasks}}
|
|
|
|
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
|
2015-10-23 18:59:08 +02:00
|
|
|
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort .}}"
|
2015-10-23 09:49:19 +02:00
|
|
|
weight = {{getWeight . $apps}}
|
2015-09-09 22:39:08 +02:00
|
|
|
{{end}}
|
|
|
|
|
2015-09-15 16:09:21 +02:00
|
|
|
[frontends]{{range .Applications}}
|
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
2015-09-09 23:09:16 +02:00
|
|
|
backend = "backend{{.ID | replace "/" "-"}}"
|
2015-10-30 11:33:41 +01:00
|
|
|
passHostHeader = {{getPassHostHeader .}}
|
2015-10-23 09:49:19 +02:00
|
|
|
[frontends.frontend-{{.ID | replace "/" ""}}.routes.route-host-{{.ID | replace "/" ""}}]
|
|
|
|
rule = "{{getFrontendRule .}}"
|
|
|
|
value = "{{getFrontendValue .}}"
|
2015-09-09 22:39:08 +02:00
|
|
|
{{end}}
|