mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
fix: 修复腾讯云cdn证书部署后会自动关闭hsts,http2.0等配置的bug
https://github.com/certd/certd/issues/161
This commit is contained in:
@@ -93,20 +93,20 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin {
|
|||||||
|
|
||||||
buildParams() {
|
buildParams() {
|
||||||
return {
|
return {
|
||||||
Https: {
|
Domain: this.domainName,
|
||||||
Switch: 'on',
|
Route: 'Https.CertInfo',
|
||||||
CertInfo: {
|
Value: JSON.stringify({
|
||||||
|
update: {
|
||||||
Certificate: this.cert.crt,
|
Certificate: this.cert.crt,
|
||||||
PrivateKey: this.cert.key,
|
PrivateKey: this.cert.key,
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
Domain: this.domainName,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRequest(params: any) {
|
async doRequest(params: any) {
|
||||||
const client = await this.getClient();
|
const client = await this.getClient();
|
||||||
const ret = await client.UpdateDomainConfig(params);
|
const ret = await client.ModifyDomainConfig(params);
|
||||||
this.checkRet(ret);
|
this.checkRet(ret);
|
||||||
this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId);
|
this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId);
|
||||||
return ret.RequestId;
|
return ret.RequestId;
|
||||||
|
|||||||
Reference in New Issue
Block a user