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: externalEndpoint: endpoint: accessKey: secretKey: bucket: ...
from the providers list select Minio Server
Fill in env:
- access key (ex: username)
- secret key (ex: Q.ixuW@JGV!*ENWH9Ut62B!3)
- internalEndpoint (ex: https://play.minio.io:1234)
- externalEndpoint (ex: https://cdn.minio.io)
- bucket (must exist on your minio server ex: bucketname)
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