2015-09-02 19:13:25 +00:00
|
|
|
[backends]{{range .Containers}}
|
2016-08-25 04:22:06 +00:00
|
|
|
{{if hasCircuitBreakerLabel .}}
|
|
|
|
[backends.backend-{{getBackend .}}.circuitbreaker]
|
|
|
|
expression = "{{getCircuitBreakerExpression .}}"
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if hasLoadBalancerLabel .}}
|
|
|
|
[backends.backend-{{getBackend .}}.loadbalancer]
|
|
|
|
method = "{{getLoadBalancerMethod .}}"
|
2016-06-02 18:36:14 +00:00
|
|
|
sticky = {{getSticky . }}
|
2016-08-25 04:22:06 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if hasMaxConnLabels .}}
|
|
|
|
[backends.backend-{{getBackend .}}.maxconn]
|
|
|
|
amount = {{getMaxConnAmount . }}
|
|
|
|
extractorfunc = "{{getMaxConnExtractorFunc . }}"
|
|
|
|
{{end}}
|
|
|
|
|
2015-09-02 19:13:25 +00:00
|
|
|
|
2015-10-23 07:49:19 +00:00
|
|
|
[frontends]{{range $frontend, $containers := .Frontends}}
|
|
|
|
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}
|
2015-09-09 15:41:33 +00:00
|
|
|
backend = "backend-{{getBackend $container}}"
|
2015-10-30 10:33:41 +00:00
|
|
|
passHostHeader = {{getPassHostHeader $container}}
|
2016-06-06 20:30:23 +00:00
|
|
|
priority = {{getPriority $container}}
|
2016-02-01 15:08:58 +00:00
|
|
|
entryPoints = [{{range getEntryPoints $container}}
|
|
|
|
"{{.}}",
|
|
|
|
{{end}}]
|
2015-10-23 07:49:19 +00:00
|
|
|
[frontends."frontend-{{$frontend}}".routes."route-frontend-{{$frontend}}"]
|
|
|
|
rule = "{{getFrontendRule $container}}"
|
2015-10-23 16:59:08 +00:00
|
|
|
{{end}}
|