lbagent: support accessing backend with tls

This commit is contained in:
Yousong Zhou
2020-01-15 12:14:27 +08:00
parent 12c4664d85
commit a468ffedbf
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -324,6 +324,11 @@ func (b *LoadbalancerCorpus) genHaproxyConfigBackend(data map[string]interface{}
} else {
// nothing to do
}
if backend.Ssl == "on" {
serverLine += " ssl"
serverLine += " verify none"
serverLine += " check-ssl"
}
serverLines = append(serverLines, serverLine)
}
data["servers"] = serverLines
+1
View File
@@ -157,6 +157,7 @@ type LoadbalancerBackend struct {
Port int
SendProxy string
Ssl string
}
type LoadbalancerAclEntry struct {