Add connection-proxy-header annotation (#1999)

This is the override the default connection header
This commit is contained in:
Qiu Jian 2018-01-30 12:29:03 +08:00 committed by Manuel Alejandro de Brito Fontes
parent b020686599
commit 951a704cec
7 changed files with 158 additions and 5 deletions

View file

@ -426,6 +426,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
loc.Denied = anns.Denied
loc.XForwardedPrefix = anns.XForwardedPrefix
loc.UsePortInRedirects = anns.UsePortInRedirects
loc.Connection = anns.Connection
if loc.Redirect.FromToWWW {
server.RedirectFromToWWW = true
@ -458,6 +459,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
Denied: anns.Denied,
XForwardedPrefix: anns.XForwardedPrefix,
UsePortInRedirects: anns.UsePortInRedirects,
Connection: anns.Connection,
}
if loc.Redirect.FromToWWW {