|
@@ -131,6 +131,8 @@ func (s *webForwardingService) GetWebForwarding(ctx context.Context, req v1.GetF
|
|
|
AllowIpList: backend.AllowIpList,
|
|
|
DenyIpList: backend.DenyIpList,
|
|
|
AccessRule: backend.AccessRule,
|
|
|
+ HttpsKey: webForwarding.HttpsKey,
|
|
|
+ HttpsCert: webForwarding.HttpsCert,
|
|
|
}, nil
|
|
|
}
|
|
|
|
|
@@ -173,6 +175,8 @@ func (s *webForwardingService) buildWafFormData(req *v1.WebForwardingDataSend, r
|
|
|
"access_rule": req.AccessRule,
|
|
|
"is_https": req.IsHttps,
|
|
|
"comment": req.Comment,
|
|
|
+ "https_cert": req.HttpsCert,
|
|
|
+ "https_key": req.HttpsKey,
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -202,6 +206,8 @@ func (s *webForwardingService) buildWebForwardingModel(req *v1.WebForwardingData
|
|
|
Cc5xxBlockDuration: req.Cc5xxBlockDuration,
|
|
|
IsHttps: req.IsHttps,
|
|
|
Comment: req.Comment,
|
|
|
+ HttpsCert: req.HttpsCert,
|
|
|
+ HttpsKey: req.HttpsKey,
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -267,6 +273,8 @@ func (s *webForwardingService) prepareWafData(ctx context.Context, req *v1.WebFo
|
|
|
DenyIpList: denyIpListStr,
|
|
|
AccessRule: req.WebForwardingData.AccessRule,
|
|
|
Comment: req.WebForwardingData.Comment,
|
|
|
+ HttpsCert: req.WebForwardingData.HttpsCert,
|
|
|
+ HttpsKey: req.WebForwardingData.HttpsKey,
|
|
|
}
|
|
|
|
|
|
// 4. 构建 WAF 表单数据映射
|