mirror of https://github.com/certd/certd
perf: 部署到阿里云任意云资源,阿里云部署大杀器
parent
98ef9aa479
commit
4075be7849
|
@ -26,3 +26,6 @@
|
||||||
padding-inline:revert;
|
padding-inline:revert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fs-form-wrapper .fs-form-header {
|
||||||
|
padding-right: 30px;
|
||||||
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ export class UploadCertToAliyun extends AbstractTaskPlugin {
|
||||||
accessKeyId: aliyunProvider.accessKeyId,
|
accessKeyId: aliyunProvider.accessKeyId,
|
||||||
accessKeySecret: aliyunProvider.accessKeySecret,
|
accessKeySecret: aliyunProvider.accessKeySecret,
|
||||||
endpoint: 'https://cas.aliyuncs.com',
|
endpoint: 'https://cas.aliyuncs.com',
|
||||||
apiVersion: '2018-07-13',
|
apiVersion: '2020-04-07',
|
||||||
});
|
});
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { TencentAccess } from '@certd/plugin-plus';
|
import { TencentAccess } from '@certd/plugin-plus';
|
||||||
import { CertInfo } from '@certd/plugin-cert';
|
import { CertInfo } from '@certd/plugin-cert';
|
||||||
import { ILogger } from '@certd/pipeline';
|
import { ILogger } from '@certd/pipeline';
|
||||||
import sdk from 'tencentcloud-sdk-nodejs/tencentcloud/services/ssl/v20191205/index.js';
|
|
||||||
export class TencentSslClient {
|
export class TencentSslClient {
|
||||||
access: TencentAccess;
|
access: TencentAccess;
|
||||||
logger: ILogger;
|
logger: ILogger;
|
||||||
|
@ -12,7 +11,7 @@ export class TencentSslClient {
|
||||||
this.region = opts.region;
|
this.region = opts.region;
|
||||||
}
|
}
|
||||||
async getSslClient(): Promise<any> {
|
async getSslClient(): Promise<any> {
|
||||||
// const sdk = await import('tencentcloud-sdk-nodejs/tencentcloud/services/ssl/v20191205/index.js');
|
const sdk = await import('tencentcloud-sdk-nodejs/tencentcloud/services/ssl/v20191205/index.js');
|
||||||
const SslClient = sdk.v20191205.Client;
|
const SslClient = sdk.v20191205.Client;
|
||||||
|
|
||||||
const clientConfig = {
|
const clientConfig = {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { TencentSslClient } from '../../lib/index.js';
|
||||||
needPlus: true,
|
needPlus: true,
|
||||||
icon: 'svg:icon-tencentcloud',
|
icon: 'svg:icon-tencentcloud',
|
||||||
group: pluginGroups.tencent.key,
|
group: pluginGroups.tencent.key,
|
||||||
desc: '部署到腾讯云COS源站域名证书',
|
desc: '部署到腾讯云COS源站域名证书【注意:很不稳定,需要重试很多次偶尔才能成功一次】',
|
||||||
default: {
|
default: {
|
||||||
strategy: {
|
strategy: {
|
||||||
runStrategy: RunStrategy.SkipWhenSucceed,
|
runStrategy: RunStrategy.SkipWhenSucceed,
|
||||||
|
|
Loading…
Reference in New Issue