Skip to content

Commit

Permalink
fix: fix forcePathStyle config for minio
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoocto committed Mar 11, 2024
1 parent 701d065 commit 5fbb722
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions config/minio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ export default (env: any) => ({
config: {
provider: "aws-s3",
providerOptions: {
accessKeyId: env("MINIO_ACCESS_KEY"),
secretAccessKey: env("MINIO_SECRET_KEY"),
endpoint: env("MINIO_ENDPOINT"),
s3ForcePathStyle: true,
params: {
Bucket: env("MINIO_BUCKET"),
s3Options: {
accessKeyId: env("MINIO_ACCESS_KEY"),
secretAccessKey: env("MINIO_SECRET_KEY"),
region: "us-east-1",
endpoint: env("MINIO_ENDPOINT"), // region in the endpoint but no bucket name
params: {
Bucket: env("MINIO_BUCKET"), // bucket name in the providerOptions
},
forcePathStyle: true,
},
},
},
Expand Down

0 comments on commit 5fbb722

Please sign in to comment.