fix: 修复腾讯云cdn证书部署后会自动关闭hsts,http2.0等配置的bug

https://github.com/certd/certd/issues/161
pull/189/head
xiaojunnuo 2024-09-09 10:17:25 +08:00
parent ae3daa9bcf
commit 7908ab79da
1 changed files with 6 additions and 6 deletions

View File

@ -93,20 +93,20 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin {
buildParams() {
return {
Https: {
Switch: 'on',
CertInfo: {
Domain: this.domainName,
Route: 'Https.CertInfo',
Value: JSON.stringify({
update: {
Certificate: this.cert.crt,
PrivateKey: this.cert.key,
},
},
Domain: this.domainName,
}),
};
}
async doRequest(params: any) {
const client = await this.getClient();
const ret = await client.UpdateDomainConfig(params);
const ret = await client.ModifyDomainConfig(params);
this.checkRet(ret);
this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId);
return ret.RequestId;