veliovgroup / Meteor-Files

🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
https://packosphere.com/ostrio/files
BSD 3-Clause "New" or "Revised" License
1.11k stars 166 forks source link

Custom Endpoint for MinIO ? #862

Open xet7 opened 1 year ago

xet7 commented 1 year ago

Hi, does the included AWS:S3 SDK include possibility for custom endpoint?

It seems that @menelike at https://github.com/veliovgroup/Meteor-Files/issues/742#issuecomment-619541976 tested with MinIO, but I don't know how.

Or do I need to use minio npm package https://min.io/docs/minio/linux/developers/javascript/minio-javascript.html ?

dr-dimitru commented 1 year ago

@xet7 I believe if you will follow this doc and replace S3 related code with minio code it would work smoothly.

You can fork, copy/paste, edit the document and send it as PR, making this package better :)

xet7 commented 1 year ago

I found that AWS:S3 SDK has option for endpoint: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Endpoint.html

I'll try does it work with MinIO.