refactoring unique backend by route
This commit is contained in:
parent
c5a91e7d22
commit
6f8f3e449d
6 changed files with 30 additions and 46 deletions
|
@ -5,7 +5,8 @@
|
|||
|
||||
[routes]{{range $host, $containers := .Hosts}}
|
||||
[routes.route-{{$host}}]
|
||||
backends = [{{range $container := $containers}}"backend-{{getBackend $container}}",{{end}}]
|
||||
{{$container := index $containers 0}}
|
||||
backend = "backend-{{getBackend $container}}"
|
||||
[routes.route-{{$host}}.rules.rule-host-{{$host}}]
|
||||
category = "Host"
|
||||
value = "{{$host}}.{{$.Domain}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue