@vymalo/medusa-minio
v1.0.6
Published
Upload medusajs files to Minio
Downloads
455
Maintainers
Readme
MedusaJS Minio
Upload medusajs files to Minio
Installation
npm install @vymalo/medusa-minio
or if using yarn
yarn add @vymalo/medusa-minio
Usage
To use this plugin, you should add it into the modules
section of your MedusaJS configuration.
modules: [
...
{
resolve: '@medusajs/medusa/file',
options: {
providers: [
{
resolve: '@vymalo/medusa-minio',
id: 'minio',
options: {
endpoint: process.env.MINIO_ENDPOINT,
cdn_url: process.env.MINIO_CDN_URL,
bucket: process.env.MINIO_BUCKET,
private_bucket: process.env.MINIO_PRIVATE_BUCKET?.length
? process.env.MINIO_PRIVATE_BUCKET
: process.env.MINIO_BUCKET,
access_key_id: process.env.MINIO_ACCESS_KEY,
secret_access_key: process.env.MINIO_SECRET_KEY,
},
},
],
},
},
...