节点组合配置时服务间可以共用证书数据

This commit is contained in:
GoEdgeLab
2023-03-18 22:15:13 +08:00
parent 786747b718
commit dab1a86d09
20 changed files with 840 additions and 694 deletions

View File

@@ -1,6 +1,7 @@
package serverconfigs
import (
"context"
"encoding/json"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
)
@@ -25,14 +26,14 @@ type HTTPSProtocolConfig struct {
}
// Init 初始化
func (this *HTTPSProtocolConfig) Init() error {
func (this *HTTPSProtocolConfig) Init(ctx context.Context) error {
err := this.InitBase()
if err != nil {
return err
}
if this.SSLPolicy != nil {
err := this.SSLPolicy.Init()
err := this.SSLPolicy.Init(ctx)
if err != nil {
return err
}