修复申请部署

pull/79/head^2
zhangchenhao 2025-05-12 19:49:59 +08:00
parent 7deeed1403
commit 79c04f7b00
2 changed files with 20 additions and 19 deletions

View File

@ -233,14 +233,15 @@ func Apply(cfg map[string]any, logger *public.Logger) (map[string]any, error) {
} }
err = client.Challenge.SetDNS01Provider(provider, err = client.Challenge.SetDNS01Provider(provider,
dns01.WrapPreCheck(func(domain, fqdn, value string, check dns01.PreCheckFunc) (bool, error) { // dns01.WrapPreCheck(func(domain, fqdn, value string, check dns01.PreCheckFunc) (bool, error) {
// 跳过预检查 // // 跳过预检查
return true, nil // return true, nil
}), // }),
dns01.AddRecursiveNameservers([]string{ dns01.AddRecursiveNameservers([]string{
"8.8.8.8:53", "8.8.8.8:53",
"1.1.1.1:53", "1.1.1.1:53",
})) }),
)
if err != nil { if err != nil {
return nil, err return nil, err
} }

View File

@ -184,9 +184,9 @@ func Deploy1panelSite(cfg map[string]any) error {
if !ok { if !ok {
return fmt.Errorf("获取网站参数失败: data") return fmt.Errorf("获取网站参数失败: data")
} }
SSLProtocol, ok := siteData["ssl_protocol"].(string) SSLProtocol, ok := siteData["SSLProtocol"].(string)
if !ok { if !ok {
return fmt.Errorf("获取网站参数失败: data.ssl_protocol") return fmt.Errorf("获取网站参数失败: data.SSLProtocol")
} }
algorithm, ok := siteData["algorithm"].(string) algorithm, ok := siteData["algorithm"].(string)
if !ok { if !ok {
@ -200,9 +200,9 @@ func Deploy1panelSite(cfg map[string]any) error {
if !ok { if !ok {
return fmt.Errorf("获取网站参数失败: data.hsts") return fmt.Errorf("获取网站参数失败: data.hsts")
} }
httpConfig, ok := siteData["http_config"].(string) httpConfig, ok := siteData["httpConfig"].(string)
if !ok { if !ok {
return fmt.Errorf("获取网站参数失败: data.http_config") return fmt.Errorf("获取网站参数失败: data.httpConfig")
} }
data := map[string]any{ data := map[string]any{