perf: 支持部署到火山云tos自定义域名证书

https://github.com/certd/certd/issues/693
This commit is contained in:
xiaojunnuo
2026-03-26 00:05:30 +08:00
parent c5d285f755
commit af6deb99cd
7 changed files with 377 additions and 48 deletions
@@ -124,6 +124,19 @@ export class VolcengineClient {
return service;
}
async getTOSService(opts: { region?: string }) {
const { TosClient } = await import("@volcengine/tos-sdk");
const client = new TosClient({
accessKeyId: this.opts.access.accessKeyId,
accessKeySecret: this.opts.access.secretAccessKey,
region: opts.region,
endpoint: `tos-${opts.region}.volces.com`
});
return client;
}
async getStsService() {
const CommonService = await this.getServiceCls();