Configurable Proxy Protocol header timeout for TLS passthrough

This commit is contained in:
Jason Roberts 2018-06-03 20:10:41 -05:00
parent c8fec068d9
commit d637a9b978
5 changed files with 46 additions and 1 deletions

View file

@ -704,6 +704,7 @@ func nextPowerOf2(v int) int {
}
func (n *NGINXController) setupSSLProxy() {
cfg := n.store.GetBackendConfiguration()
sslPort := n.cfg.ListenPorts.HTTPS
proxyPort := n.cfg.ListenPorts.SSLProxy
@ -722,7 +723,7 @@ func (n *NGINXController) setupSSLProxy() {
glog.Fatalf("%v", err)
}
proxyList := &proxyproto.Listener{Listener: listener}
proxyList := &proxyproto.Listener{Listener: listener, ProxyHeaderTimeout: cfg.ProxyProtocolHeaderTimeout}
// start goroutine that accepts tcp connections in port 443
go func() {