Add support for enabling ssl_ciphers per host (#2006)
* Add support for adding ssl_ciphers * Add documentation
This commit is contained in:
parent
8bdb5e42f2
commit
d7ef6b3fc7
8 changed files with 131 additions and 1 deletions
|
|
@ -913,6 +913,7 @@ func (n *NGINXController) createServers(data []*extensions.Ingress,
|
|||
},
|
||||
},
|
||||
SSLPassthrough: anns.SSLPassthrough,
|
||||
SSLCiphers: anns.SSLCiphers,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -954,6 +955,11 @@ func (n *NGINXController) createServers(data []*extensions.Ingress,
|
|||
servers[host].ServerSnippet = anns.ServerSnippet
|
||||
}
|
||||
|
||||
// only add ssl ciphers if the server does not have one previously configured
|
||||
if servers[host].SSLCiphers == "" && anns.SSLCiphers != "" {
|
||||
servers[host].SSLCiphers = anns.SSLCiphers
|
||||
}
|
||||
|
||||
// only add a certificate if the server does not have one previously configured
|
||||
if servers[host].SSLCertificate != "" {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue