1
0
Fork 0

Add some missing quotes in templates

This commit is contained in:
Ludovic Fernandez 2018-03-07 22:10:04 +01:00 committed by Traefiker Bot
parent 3a2b421566
commit b001b0da86
10 changed files with 88 additions and 88 deletions

View file

@ -4,7 +4,7 @@
[backends.backend-{{ $app.Name }}]
{{range $instance := .Instances }}
[backends.backend-{{ $app.Name }}.servers.server-{{ getInstanceID $instance }}]
[backends."backend-{{ $app.Name }}".servers."server-{{ getInstanceID $instance }}"]
url = "{{ getProtocol $instance }}://{{ .IpAddr }}:{{ getPort $instance }}"
weight = {{ getWeight $instance }}
{{end}}
@ -14,11 +14,11 @@
[frontends]
{{range $app := .Applications }}
[frontends.frontend-{{ $app.Name }}]
[frontends."frontend-{{ $app.Name }}"]
backend = "backend-{{ $app.Name }}"
entryPoints = ["http"]
[frontends.frontend-{{ $app.Name }}.routes.route-host{{ $app.Name }}]
[frontends."frontend-{{ $app.Name }}".routes."route-host{{ $app.Name }}"]
rule = "Host:{{ $app.Name | tolower }}"
{{end}}