Configurable Proxy Protocol header timeout for TLS passthrough
This commit is contained in:
parent
c8fec068d9
commit
d637a9b978
5 changed files with 46 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue