3.0.0 • Published 4 years ago

strapi-provider-upload-iminio v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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 ✨

Thanks goes to these wonderful people (emoji key):

License

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