perf: 支持cloudflare域名

This commit is contained in:
xiaojunnuo
2024-06-15 02:17:34 +08:00
parent 368132daae
commit fbb9a47e8f
14 changed files with 206 additions and 106 deletions

View File

@@ -107,7 +107,7 @@ export class CertApplyPlugin extends AbstractTaskPlugin {
@TaskInput({
title: "CsrInfo",
})
csrInfo: any;
csrInfo!: string;
acme!: AcmeService;
logger!: Logger;
@@ -167,7 +167,6 @@ export class CertApplyPlugin extends AbstractTaskPlugin {
/**
* 是否更新证书
* @param input
*/
async condition() {
if (this.forceUpdate) {
@@ -220,7 +219,7 @@ export class CertApplyPlugin extends AbstractTaskPlugin {
organizationUnit: "IT Department",
emailAddress: email,
},
this.csrInfo
this.csrInfo ? JSON.parse(this.csrInfo) : {}
);
this.logger.info("开始申请证书,", email, domains);