修改esa部署和多吉云cdn部署

This commit is contained in:
v-me-50
2025-06-16 18:41:41 +08:00
parent 1d5cd9ca03
commit 426b358d56
3 changed files with 41 additions and 17 deletions

View File

@@ -87,11 +87,11 @@ func DeployAliyunESA(cfg map[string]any) error {
if err != nil {
return fmt.Errorf("创建 ESA 客户端失败: %w", err)
}
certPEM, ok := cert["cert_pem"].(string)
certPEM, ok := cert["cert"].(string)
if !ok {
return fmt.Errorf("证书内容不存在或格式错误")
}
privkeyPEM, ok := cert["privkey_pem"].(string)
privkeyPEM, ok := cert["key"].(string)
if !ok {
return fmt.Errorf("私钥内容不存在或格式错误")
}