15 lines
604 B
Cheetah
15 lines
604 B
Cheetah
{{$apps := .Applications}}
|
|
[backends]{{range .Tasks}}
|
|
[backends.backend{{.AppID | replace "/" "-"}}.servers.server-{{.ID | replace "." "-"}}]
|
|
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort . $apps}}"
|
|
weight = {{getWeight . $apps}}
|
|
{{end}}
|
|
|
|
[frontends]{{range .Applications}}
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
|
backend = "backend{{.ID | replace "/" "-"}}"
|
|
passHostHeader = {{getPassHostHeader .}}
|
|
[frontends.frontend{{.ID | replace "/" "-"}}.routes.route-host{{.ID | replace "/" "-"}}]
|
|
rule = "{{getFrontendRule .}}"
|
|
value = "{{getFrontendValue .}}"
|
|
{{end}}
|