mirror of
https://github.com/alibaba/higress.git
synced 2026-06-26 02:35:02 +08:00
feat: Enhance SSL passthrough support (#3943)
Signed-off-by: zijiren233 <pyh1670605849@gmail.com>
This commit is contained in:
@@ -57,6 +57,8 @@ type Ingress struct {
|
||||
|
||||
DownstreamTLS *DownstreamTLSConfig
|
||||
|
||||
SSLPassthrough *SSLPassthroughConfig
|
||||
|
||||
Canary *CanaryConfig
|
||||
|
||||
IPAccessControl *IPAccessControlConfig
|
||||
@@ -115,6 +117,10 @@ func (i *Ingress) IsCanary() bool {
|
||||
return i.Canary.Enabled
|
||||
}
|
||||
|
||||
func (i *Ingress) IsSSLPassthrough() bool {
|
||||
return i.SSLPassthrough != nil && i.SSLPassthrough.Enabled
|
||||
}
|
||||
|
||||
// CanaryKind return byHeader, byWeight
|
||||
func (i *Ingress) CanaryKind() (bool, bool) {
|
||||
if !i.IsCanary() {
|
||||
@@ -157,6 +163,7 @@ func NewAnnotationHandlerManager() AnnotationHandler {
|
||||
canary{},
|
||||
cors{},
|
||||
downstreamTLS{},
|
||||
sslPassthrough{},
|
||||
redirect{},
|
||||
rewrite{},
|
||||
upstreamTLS{},
|
||||
|
||||
Reference in New Issue
Block a user