mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: 优化阿里云waf的日志信息
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user