Skip to content

Commit ab60a81

Browse files
committed
fix s3 config
1 parent e906171 commit ab60a81

2 files changed

Lines changed: 15 additions & 38 deletions

File tree

package-lock.json

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.module.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,25 @@ import { LoggerModule } from 'nestjs-pino';
194194
useFactory: async (configService: ConfigService) => {
195195
return {
196196
config: {
197-
accessKeyId: configService.get(
198-
'OBJECT_STORAGE_ACCESS_KEY_ID',
199-
'minio',
200-
),
201-
secretAccessKey: configService.get(
202-
'OBJECT_STORAGE_SECRET_ACCESS_KEY',
203-
'password',
204-
),
197+
credentials: {
198+
accessKeyId: configService.get(
199+
'OBJECT_STORAGE_ACCESS_KEY_ID',
200+
'minio',
201+
),
202+
secretAccessKey: configService.get(
203+
'OBJECT_STORAGE_SECRET_ACCESS_KEY',
204+
'password',
205+
),
206+
},
205207
endpoint: configService.get(
206208
'OBJECT_STORAGE_ENDPOINT',
207209
'http://127.0.0.1:9000',
208210
),
209-
s3ForcePathStyle: true,
210-
signatureVersion: 'v4',
211+
region: configService.get(
212+
'OBJECT_STORAGE_REGION',
213+
'us-east-1',
214+
),
215+
forcePathStyle: true,
211216
},
212217
} as S3ModuleOptions;
213218
},

0 commit comments

Comments
 (0)