mirror of https://github.com/certd/certd
perf: 优化华为cdn插件引用ccm证书
parent
893dcd4f24
commit
b565b4b3b9
|
@ -19,7 +19,7 @@ import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
export class HauweiDeployCertToCDN extends AbstractTaskPlugin {
|
export class HauweiDeployCertToCDN extends AbstractTaskPlugin {
|
||||||
@TaskInput({
|
@TaskInput({
|
||||||
title: '域名证书',
|
title: '域名证书',
|
||||||
helper: '请选择前置任务输出的域名证书',
|
helper: '请选择前置任务输出的域名证书\n如果你选择使用ccm证书ID,则需要在[域名管理页面右上角开启SCM授权](https://console.huaweicloud.com/cdn/#/cdn/domain)',
|
||||||
component: {
|
component: {
|
||||||
name: 'output-selector',
|
name: 'output-selector',
|
||||||
from: [...CertApplyPluginNames,'HauweiUploadToCCM'],
|
from: [...CertApplyPluginNames,'HauweiUploadToCCM'],
|
||||||
|
@ -70,6 +70,7 @@ export class HauweiDeployCertToCDN extends AbstractTaskPlugin {
|
||||||
}else{
|
}else{
|
||||||
this.logger.info('使用已有域名证书:', this.cert);
|
this.logger.info('使用已有域名证书:', this.cert);
|
||||||
httpsConfig= httpsConfig.withCertificateSource(2)//scm证书
|
httpsConfig= httpsConfig.withCertificateSource(2)//scm证书
|
||||||
|
.withCertificateName(this.appendTimeSuffix('certd'))
|
||||||
.withScmCertificateId(this.cert)
|
.withScmCertificateId(this.cert)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue