This commit is contained in:
2026-01-08 15:39:28 +08:00
parent 1c6c045666
commit 0443ecdad3
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
S3_ACCESS_KEY_ID=your_access_key_id S3_ACCESS_KEY_ID=your_access_key_id
S3_SECRET_ACCESS_KEY=your_secret_access_key S3_ACCESS_KEY_SECRET=your_secret_access_key
S3_REGION=your_region S3_REGION=your_region
S3_BUCKET_NAME=your_bucket_name S3_BUCKET_NAME=your_bucket_name
S3_ENDPOINT=your_endpoint S3_ENDPOINT=your_endpoint

View File

@@ -6,7 +6,7 @@ import { S3Client, ListObjectsV2Command, GetBucketMetadataConfigurationCommand,
export const s3Client = new S3Client({ export const s3Client = new S3Client({
credentials: { credentials: {
accessKeyId: process.env.S3_ACCESS_KEY_ID || '', accessKeyId: process.env.S3_ACCESS_KEY_ID || '',
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY || '', secretAccessKey: process.env.S3_ACCESS_KEY_SECRET || '',
}, },
region: process.env.S3_REGION, region: process.env.S3_REGION,
endpoint: 'https://tos-s3-cn-shanghai.volces.com', endpoint: 'https://tos-s3-cn-shanghai.volces.com',