refactor(ecs): headers as pointer.
This commit is contained in:
parent
a33476dea8
commit
de7dd068d9
2 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,7 @@ func (p *Provider) buildConfiguration(services map[string][]ecsInstance) (*types
|
|||
"getRateLimitsExtractorFunc": getFuncStringValue(label.TraefikFrontendRateLimitExtractorFunc, ""),
|
||||
"getRateLimits": getRateLimits,
|
||||
// Headers
|
||||
"hasHeaders": hasPrefixFuncLabel(label.TraefikFrontendHeaders),
|
||||
"hasRequestHeaders": hasFuncLabel(label.TraefikFrontendRequestHeaders),
|
||||
"getRequestHeaders": getFuncMapValue(label.TraefikFrontendRequestHeaders),
|
||||
"hasResponseHeaders": hasFuncLabel(label.TraefikFrontendResponseHeaders),
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{if hasHeaders $instance }}
|
||||
[frontends."frontend-{{ $serviceName }}".headers]
|
||||
{{if hasSSLRedirectHeaders $instance}}
|
||||
SSLRedirect = {{getSSLRedirectHeaders $instance}}
|
||||
|
@ -168,6 +169,7 @@
|
|||
{{$k}} = "{{$v}}"
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
[frontends.frontend-{{ $serviceName }}.routes.route-frontend-{{ $serviceName }}]
|
||||
rule = "{{getFrontendRule $instance}}"
|
||||
|
|
Loading…
Reference in a new issue