Add missing quotes around backendName in kv template
This commit is contained in:
parent
bb7c4aaf7e
commit
36966da701
2 changed files with 6 additions and 6 deletions
|
@ -1476,14 +1476,14 @@ var _templatesKvTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.{{ $backendName }}.healthCheck]
|
[backends."{{ $backendName }}".healthCheck]
|
||||||
scheme = "{{ $healthCheck.Scheme }}"
|
scheme = "{{ $healthCheck.Scheme }}"
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
hostname = "{{ $healthCheck.Hostname }}"
|
hostname = "{{ $healthCheck.Hostname }}"
|
||||||
{{if $healthCheck.Headers }}
|
{{if $healthCheck.Headers }}
|
||||||
[backends.{{ $backendName }}.healthCheck.headers]
|
[backends."{{ $backendName }}".healthCheck.headers]
|
||||||
{{range $k, $v := $healthCheck.Headers }}
|
{{range $k, $v := $healthCheck.Headers }}
|
||||||
{{$k}} = "{{$v}}"
|
{{$k}} = "{{$v}}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1492,7 +1492,7 @@ var _templatesKvTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $buffering := getBuffering $backend }}
|
{{ $buffering := getBuffering $backend }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.{{ $backendName }}.buffering]
|
[backends."{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
|
|
@ -28,14 +28,14 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.{{ $backendName }}.healthCheck]
|
[backends."{{ $backendName }}".healthCheck]
|
||||||
scheme = "{{ $healthCheck.Scheme }}"
|
scheme = "{{ $healthCheck.Scheme }}"
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
hostname = "{{ $healthCheck.Hostname }}"
|
hostname = "{{ $healthCheck.Hostname }}"
|
||||||
{{if $healthCheck.Headers }}
|
{{if $healthCheck.Headers }}
|
||||||
[backends.{{ $backendName }}.healthCheck.headers]
|
[backends."{{ $backendName }}".healthCheck.headers]
|
||||||
{{range $k, $v := $healthCheck.Headers }}
|
{{range $k, $v := $healthCheck.Headers }}
|
||||||
{{$k}} = "{{$v}}"
|
{{$k}} = "{{$v}}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
{{ $buffering := getBuffering $backend }}
|
{{ $buffering := getBuffering $backend }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.{{ $backendName }}.buffering]
|
[backends."{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
|
Loading…
Reference in a new issue