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,
|
show: false,
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
show: false,
|
||||||
component: {
|
component: {
|
||||||
valuesFormat: {
|
valuesFormat: {
|
||||||
labelFormatter: (item: any) => {
|
labelFormatter: (item: any) => {
|
||||||
|
|
|
@ -132,6 +132,7 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
||||||
const client = await this.getWafClient(access);
|
const client = await this.getWafClient(access);
|
||||||
const instanceId = await this.getInstanceId(client);
|
const instanceId = await this.getInstanceId(client);
|
||||||
for (const siteDomain of this.cnameDomains) {
|
for (const siteDomain of this.cnameDomains) {
|
||||||
|
this.logger.info('开始部署', siteDomain);
|
||||||
const params = {
|
const params = {
|
||||||
RegionId: this.regionId,
|
RegionId: this.regionId,
|
||||||
InstanceId: instanceId,
|
InstanceId: instanceId,
|
||||||
|
@ -140,6 +141,9 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
||||||
const siteDetail = await client.request('DescribeDomainDetail', params);
|
const siteDetail = await client.request('DescribeDomainDetail', params);
|
||||||
this.logger.info('站点详情', JSON.stringify(siteDetail));
|
this.logger.info('站点详情', JSON.stringify(siteDetail));
|
||||||
const listen = siteDetail.Listen;
|
const listen = siteDetail.Listen;
|
||||||
|
if (!listen) {
|
||||||
|
throw new Error(`没有找到${siteDomain}的监听器`);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* "HttpsPorts": [
|
* "HttpsPorts": [
|
||||||
* 443
|
* 443
|
||||||
|
|
Loading…
Reference in New Issue