30 lines
1 KiB
Cheetah
30 lines
1 KiB
Cheetah
[backends]{{range .Containers}}
|
|
{{if hasCircuitBreakerLabel .}}
|
|
[backends.backend-{{getBackend .}}.circuitbreaker]
|
|
expression = "{{getCircuitBreakerExpression .}}"
|
|
{{end}}
|
|
|
|
{{if hasLoadBalancerLabel .}}
|
|
[backends.backend-{{getBackend .}}.loadbalancer]
|
|
method = "{{getLoadBalancerMethod .}}"
|
|
sticky = {{getSticky . }}
|
|
{{end}}
|
|
|
|
{{if hasMaxConnLabels .}}
|
|
[backends.backend-{{getBackend .}}.maxconn]
|
|
amount = {{getMaxConnAmount . }}
|
|
extractorfunc = "{{getMaxConnExtractorFunc . }}"
|
|
{{end}}
|
|
|
|
|
|
[frontends]{{range $frontend, $containers := .Frontends}}
|
|
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}
|
|
backend = "backend-{{getBackend $container}}"
|
|
passHostHeader = {{getPassHostHeader $container}}
|
|
priority = {{getPriority $container}}
|
|
entryPoints = [{{range getEntryPoints $container}}
|
|
"{{.}}",
|
|
{{end}}]
|
|
[frontends."frontend-{{$frontend}}".routes."route-frontend-{{$frontend}}"]
|
|
rule = "{{getFrontendRule $container}}"
|
|
{{end}}
|