Add Lua module to serve SSL Certificates dynamically

This commit is contained in:
Henry Tran 2018-06-05 09:51:22 -04:00
parent b214282057
commit cbf041fc3e
6 changed files with 578 additions and 2 deletions

View file

@ -731,7 +731,7 @@ func clearCertificates(config *ingress.Configuration) {
var clearedServers []*ingress.Server
for _, server := range config.Servers {
copyOfServer := *server
copyOfServer.SSLCert = ingress.SSLCert{}
copyOfServer.SSLCert = ingress.SSLCert{PemFileName: copyOfServer.SSLCert.PemFileName}
clearedServers = append(clearedServers, &copyOfServer)
}
config.Servers = clearedServers