1
0
Fork 0

refactoring unique backend by route

This commit is contained in:
emile 2015-09-09 17:41:33 +02:00
parent c5a91e7d22
commit 6f8f3e449d
6 changed files with 30 additions and 46 deletions

View file

@ -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}}"