12 lines
452 B
Cheetah
12 lines
452 B
Cheetah
[backends]{{range .Nodes}}
|
|
[backends.backend-{{getBackend .}}.servers.{{.Service.Service | replace "." "-"}}--{{.Service.Address | replace "." "-"}}--{{.Service.Port}}]
|
|
url = "http://{{.Service.Address}}:{{.Service.Port}}"
|
|
{{end}}
|
|
|
|
[frontends]{{range .Services}}
|
|
[frontends.frontend-{{.}}]
|
|
backend = "backend-{{.}}"
|
|
passHostHeader = false
|
|
[frontends.frontend-{{.}}.routes.route-host-{{.}}]
|
|
rule = "{{getFrontendValue .}}"
|
|
{{end}}
|