feat: support replacing old certificate on deployment to gcore cdn

This commit is contained in:
Fu Diwei
2025-05-12 23:19:13 +08:00
committed by RHQYZ
parent 9a0dd53cd7
commit f9633616e2
7 changed files with 101 additions and 34 deletions

View File

@@ -63,6 +63,7 @@ func (d *DeployerProvider) Deploy(ctx context.Context, certPEM string, privkeyPE
return nil, errors.New("config `domain` is required")
}
// 如果原证书 ID 为空,则新增证书;否则替换证书。
if d.config.CertificateId == "" {
// 新增证书
// REF: https://portal.baishancloud.com/track/document/downloadPdf/1441