f4cb4bb1b8
Signed-off-by: Emile Vauge <emile@vauge.com>
18 lines
659 B
Cheetah
18 lines
659 B
Cheetah
{{$apps := .Applications}}
|
|
[backends]{{range .Tasks}}
|
|
[backends.backend{{getBackend . $apps}}.servers.server-{{.ID | replace "." "-"}}]
|
|
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort . $apps}}"
|
|
weight = {{getWeight . $apps}}
|
|
{{end}}
|
|
|
|
[frontends]{{range .Applications}}
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
|
backend = "backend{{getFrontendBackend .}}"
|
|
passHostHeader = {{getPassHostHeader .}}
|
|
priority = {{getPriority .}}
|
|
entryPoints = [{{range getEntryPoints .}}
|
|
"{{.}}",
|
|
{{end}}]
|
|
[frontends.frontend{{.ID | replace "/" "-"}}.routes.route-host{{.ID | replace "/" "-"}}]
|
|
rule = "{{getFrontendRule .}}"
|
|
{{end}}
|