mirror of https://github.com/certd/certd
perf: 优化阿里云waf的日志信息
parent
991b741cbe
commit
821c6d807d
|
@ -118,6 +118,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||
show: false,
|
||||
},
|
||||
form: {
|
||||
show: false,
|
||||
component: {
|
||||
valuesFormat: {
|
||||
labelFormatter: (item: any) => {
|
||||
|
|
|
@ -132,6 +132,7 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
|||
const client = await this.getWafClient(access);
|
||||
const instanceId = await this.getInstanceId(client);
|
||||
for (const siteDomain of this.cnameDomains) {
|
||||
this.logger.info('开始部署', siteDomain);
|
||||
const params = {
|
||||
RegionId: this.regionId,
|
||||
InstanceId: instanceId,
|
||||
|
@ -140,6 +141,9 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
|||
const siteDetail = await client.request('DescribeDomainDetail', params);
|
||||
this.logger.info('站点详情', JSON.stringify(siteDetail));
|
||||
const listen = siteDetail.Listen;
|
||||
if (!listen) {
|
||||
throw new Error(`没有找到${siteDomain}的监听器`);
|
||||
}
|
||||
/**
|
||||
* "HttpsPorts": [
|
||||
* 443
|
||||
|
|
Loading…
Reference in New Issue