This commit is contained in:
2026-03-16 12:39:24 +03:00
parent 87c265c7f6
commit e876bcfeaa
3 changed files with 225 additions and 0 deletions

11
src/s3-client/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { S3Client } from "@aws-sdk/client-s3";
const rustfs_client = new S3Client({
region: "cn-east-1",
credentials: {
accessKeyId: process.env.RUSTFS_ACCESS_KEY_ID!,
secretAccessKey: process.env.RUSTFS_SECRET_ACCESS_KEY!,
},
endpoint: process.env.RUSTFS_ENDPOINT_URL!,
});