This is using version 5.9.1.
I noticed from the MinIO's guide to use aws-sdk that the configuration should be something like this (source):
var s3 = new AWS.S3({
accessKeyId: 'YOUR-ACCESSKEYID' ,
secretAccessKey: 'YOUR-SECRETACCESSKEY' ,
endpoint: 'http://127.0.0.1:9000' ,
s3ForcePathStyle: true, // needed with minio
signatureVersion: 'v4'
});
So what I did was adding the s3ForcePathStyle: true and it works nicely with MinIO.
How about we add an environmental variable called COMMUTER_S3_FORCE_PATH_STYLE or something like that so by setting it commuter can be used with MinIO and I suspect other tools or use-cases this option is needed?
I went ahead and created a PR. Any thoughts?
p.s. I'm not quite familiar with javascript coding conventions
Hi,
I was trying to configure Commuter with the S3 compatible object storage MinIO however I would get the following error:
This is using version
5.9.1
. I noticed from the MinIO's guide to useaws-sdk
that the configuration should be something like this (source):So what I did was adding the
s3ForcePathStyle: true
and it works nicely with MinIO. How about we add an environmental variable called COMMUTER_S3_FORCE_PATH_STYLE or something like that so by setting it commuter can be used with MinIO and I suspect other tools or use-cases this option is needed? I went ahead and created a PR. Any thoughts?p.s. I'm not quite familiar with javascript coding conventions