mirror of https://github.com/certd/certd
perf: 腾讯云插件支持国际版
parent
06d15be43a
commit
58e82d5dbd
|
@ -5,6 +5,7 @@ import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
|
|||
title: "天翼云授权",
|
||||
desc: "",
|
||||
icon: "ant-design:aliyun-outlined",
|
||||
order: 2,
|
||||
})
|
||||
export class CtyunAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
|
|
|
@ -6,6 +6,7 @@ import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
|
|||
desc: "",
|
||||
icon: "svg:icon-qiniuyun",
|
||||
input: {},
|
||||
order: 2,
|
||||
})
|
||||
export class QiniuAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
|
|
|
@ -5,6 +5,7 @@ import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
|
|||
desc: "",
|
||||
icon: "clarity:host-line",
|
||||
input: {},
|
||||
order: 0,
|
||||
})
|
||||
export class SshAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
|
|
|
@ -4,6 +4,7 @@ import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
|
|||
name: "tencent",
|
||||
title: "腾讯云",
|
||||
icon: "svg:icon-tencentcloud",
|
||||
order: 0,
|
||||
})
|
||||
export class TencentAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
|
@ -59,4 +60,8 @@ export class TencentAccess extends BaseAccess {
|
|||
isIntl() {
|
||||
return this.accountType === "intl";
|
||||
}
|
||||
|
||||
intlDomain() {
|
||||
return this.isIntl() ? "intl." : "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ export class TencentSslClient {
|
|||
region: this.region,
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: "ssl.tencentcloudapi.com",
|
||||
endpoint: this.access.isIntl() ? "ssl.intl.tencentcloudapi.com" : "ssl.tencentcloudapi.com",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -16,6 +16,7 @@ type DemoRecord = {
|
|||
icon: 'clarity:plugin-line',
|
||||
// 这里是对应的云平台的access类型名称
|
||||
accessType: 'demo',
|
||||
order:99,
|
||||
})
|
||||
export class DemoDnsProvider extends AbstractDnsProvider<DemoRecord> {
|
||||
access!: DemoAccess;
|
||||
|
|
|
@ -5,6 +5,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
|
|||
title: '华为云授权',
|
||||
desc: '',
|
||||
icon: 'svg:icon-huawei',
|
||||
order: 0,
|
||||
})
|
||||
export class HuaweiAccess extends BaseAccess {
|
||||
@AccessInput({
|
||||
|
|
|
@ -9,6 +9,7 @@ import {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
|
|||
title: '京东云',
|
||||
desc: '',
|
||||
icon: 'svg:icon-jdcloud',
|
||||
order: 1,
|
||||
})
|
||||
export class JDCloudAccess extends BaseAccess {
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@ import { JDCloudAccess } from "./access.js";
|
|||
title: "京东云",
|
||||
desc: "京东云DNS解析提供商",
|
||||
accessType: "jdcloud",
|
||||
icon: "svg:icon-jdcloud"
|
||||
icon: "svg:icon-jdcloud",
|
||||
order:3,
|
||||
})
|
||||
export class JDCloudDnsProvider extends AbstractDnsProvider {
|
||||
access!: JDCloudAccess;
|
||||
|
|
|
@ -9,7 +9,8 @@ import { CertInfo } from "@certd/plugin-cert";
|
|||
name: "rainyun",
|
||||
title: "雨云授权",
|
||||
desc: "https://app.rainyun.com/",
|
||||
icon: "svg:icon-lucky"
|
||||
icon: "svg:icon-lucky",
|
||||
order: 100
|
||||
})
|
||||
export class RainyunAccess extends BaseAccess {
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import { RainyunAccess } from "./access.js";
|
|||
desc: "雨云DNS解析提供商",
|
||||
accessType: "rainyun",
|
||||
icon: "svg:icon-lucky",
|
||||
order: 0
|
||||
})
|
||||
export class RainyunDnsProvider extends AbstractDnsProvider {
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
|
|||
region: this.region,
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'ssl.tencentcloudapi.com',
|
||||
endpoint: `ssl.${access.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -104,7 +104,7 @@ export class TencentDeployCertToCDNv2 extends AbstractTaskPlugin {
|
|||
region: '',
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'cdn.tencentcloudapi.com',
|
||||
endpoint: `cdn.${accessProvider.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -80,7 +80,7 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin {
|
|||
region: '',
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'cdn.tencentcloudapi.com',
|
||||
endpoint: `cdn.${accessProvider.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -119,7 +119,7 @@ export class DeployCertToTencentCLB extends AbstractTaskPlugin {
|
|||
region: region,
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'clb.tencentcloudapi.com',
|
||||
endpoint: `clb.${accessProvider.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -89,7 +89,8 @@ export class DeployCertToTencentEO extends AbstractTaskPlugin {
|
|||
getClient(accessProvider: TencentAccess) {
|
||||
const TeoClient = this.Client;
|
||||
|
||||
const endpoint = accessProvider.isIntl()?"teo.intl.tencentcloudapi.com": "teo.tencentcloudapi.com";
|
||||
//teo.intl.tencentcloudapi.com
|
||||
const endpoint = `teo.${accessProvider.intlDomain()}tencentcloudapi.com`;
|
||||
const clientConfig = {
|
||||
credential: {
|
||||
secretId: accessProvider.secretId,
|
||||
|
|
|
@ -101,7 +101,7 @@ export class TencentDeployCertToLive extends AbstractTaskPlugin {
|
|||
region: '',
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'live.tencentcloudapi.com',
|
||||
endpoint: `live.${accessProvider.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -210,7 +210,7 @@ export class DeployCertToTencentTKEIngressPlugin extends AbstractTaskPlugin {
|
|||
region,
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: "tke.tencentcloudapi.com"
|
||||
endpoint: `tke.${accessProvider.intlDomain()}tencentcloudapi.com`
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -151,7 +151,7 @@ export class TencentActionInstancesPlugin extends AbstractTaskPlugin {
|
|||
region: this.region,
|
||||
profile: {
|
||||
httpProfile: {
|
||||
endpoint: 'cvm.tencentcloudapi.com',
|
||||
endpoint: `cvm.${accessProvider.intlDomain()}tencentcloudapi.com`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -9,6 +9,7 @@ import {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
|
|||
title: '火山引擎',
|
||||
desc: '',
|
||||
icon: 'svg:icon-volcengine',
|
||||
order: 1,
|
||||
})
|
||||
export class VolcengineAccess extends BaseAccess {
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ import { VolcengineAccess } from "./access.js";
|
|||
title: "火山引擎",
|
||||
desc: "火山引擎DNS解析提供商",
|
||||
accessType: "volcengine",
|
||||
icon: "svg:icon-volcengine"
|
||||
icon: "svg:icon-volcengine",
|
||||
order:2,
|
||||
})
|
||||
export class VolcengineDnsProvider extends AbstractDnsProvider {
|
||||
client: VolcengineDnsClient;
|
||||
|
|
Loading…
Reference in New Issue