1
0
Fork 0

feat(k8s): add error pages annotations.

This commit is contained in:
Fernandez Ludovic 2017-12-21 17:47:50 +01:00 committed by Traefiker
parent 5bfd6acd52
commit 4c0d6e211b
4 changed files with 74 additions and 0 deletions

View file

@ -63,6 +63,18 @@
replacement = "{{$frontend.RedirectReplacement}}"
{{end}}
{{ if $frontend.Errors }}
[frontends."frontend-{{$frontendName}}".errors]
{{ range $pageName, $page := $frontend.Errors }}
[frontends."frontend-{{$frontendName}}".errors.{{ $pageName }}]
status = [{{range $page.Status}}
"{{.}}",
{{end}}]
backend = "{{$page.Backend}}"
query = "{{$page.Query}}"
{{end}}
{{end}}
{{if $frontend.Headers }}
[frontends."{{$frontendName}}".headers]
SSLRedirect = {{$frontend.Headers.SSLRedirect}}