ae275c9e60
Fixes #176
13 lines
428 B
Cheetah
13 lines
428 B
Cheetah
[backends]{{range .Nodes}}
|
|
[backends.backend-{{getBackend .}}.servers.server-{{.Node.Node | replace "." "-"}}-{{.Service.Port}}]
|
|
url = "http://{{.Node.Address}}:{{.Service.Port}}"
|
|
{{end}}
|
|
|
|
[frontends]{{range .Services}}
|
|
[frontends.frontend-{{.}}]
|
|
backend = "backend-{{.}}"
|
|
passHostHeader = false
|
|
[frontends.frontend-{{.}}.routes.route-host-{{.}}]
|
|
rule = "Host"
|
|
value = "{{getFrontendValue .}}"
|
|
{{end}}
|