strapi-provider-upload-iminio

3.0.0 • Public • Published

strapi-provider-upload-minio

Minio Server upload file provider for Strapi.

Installation and basic usage

npm i strapi-provider-upload-minio

Add in config/plugins.js something like this:

...
  upload: {
    provider: 'minio',
    providerOptions: {
      internalEndpoint: env('MINIO_INTERNAL_ENDPOINT'),
      externalEndpoint: env('MINIO_EXTERNAL_ENDPOINT'),
      endpoint: env('MINIO_ENDPOINT'),
      accessKey: env('MINIO_ACCESS_KEY'),
      secretKey: env('MINIO_SECRET_KEY'),
      bucket: env('MINIO_BUCKET'),
    },
  },
...

from the providers list select Minio Server

Fill in env:

NOTE: bucket policy must be set to allow your file to be readable. (just set it to: prefix *, readonly)

Run

MINIO_INTERNAL_ENDPOINT=https://play.minio.io:1234 \
MINIO_EXTERNAL_ENDPOINT=https://cdn.minio.io \
MINIO_ACCESS_KEY=username \
MINIO_SECRET_KEY=Q.ixuW@JGV!*ENWH9Ut62B!3 \
MINIO_BUCKET=bucketname \
  npm run start

Resources

Links

White to me and I help you

Contributors ✨


Igor Suvorov

💬 💻 🎨 📖 💡 🤔 👀 ⚠️ ️️️️♿️

Thanks goes to these wonderful people (emoji key):

License

This project is licensed under the MIT License - see the MIT License file for details

Package Sidebar

Install

npm i strapi-provider-upload-iminio

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

7.13 kB

Total Files

4

Last publish

Collaborators

  • isuvorov