mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
lbagent: support accessing backend with tls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -157,6 +157,7 @@ type LoadbalancerBackend struct {
|
||||
Port int
|
||||
|
||||
SendProxy string
|
||||
Ssl string
|
||||
}
|
||||
|
||||
type LoadbalancerAclEntry struct {
|
||||
|
||||
Reference in New Issue
Block a user