Add HTTP headers to healthcheck.

This commit is contained in:
Ludovic Fernandez 2018-04-18 18:16:03 +02:00 committed by Traefiker Bot
parent e6ce61fdf0
commit 36dcfbfe2d
4 changed files with 11 additions and 9 deletions

View file

@ -54,6 +54,13 @@ const tmpl = `
path = "{{ $healthCheck.Path }}"
port = {{ $healthCheck.Port }}
interval = "{{ $healthCheck.Interval }}"
hostname = "{{ $healthCheck.Hostname }}"
{{if $healthCheck.Headers }}
[backends."{{ $backendName }}".healthCheck.headers]
{{range $k, $v := $healthCheck.Headers }}
{{$k}} = "{{$v}}"
{{end}}
{{end}}
{{end}}
{{range $instance := $partition.Instances}}