{"_id":"@charlesshook/strapi-upload-provider-minio","name":"@charlesshook/strapi-upload-provider-minio","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@charlesshook/strapi-upload-provider-minio","version":"0.1.0","description":"Minio provider for Strapi upload","keywords":["upload","minio","s3","strapi"],"homepage":"https://github.com/charlesshook/strapi-provider-upload-minio#readme","bugs":{"url":"https://github.com/charlesshook/strapi-provider-upload-minio/issues"},"repository":{"type":"git","url":"git://github.com/charlesshook/strapi-provider-upload-minio.git"},"license":"MIT","author":{"name":"Charles Shook","url":"https://charlesshook.com/"},"source":"./src/index.js","dependencies":{"minio":"^8.0.5"},"main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","typecheck":"tsc --noEmit"},"devDependencies":{"@types/node":"^22.15.17","typescript":"^5.8.3"},"_id":"@charlesshook/strapi-upload-provider-minio@0.1.0","gitHead":"46d2ca9aad65b6aff92f7dc1ee4776864c59cc66","_nodeVersion":"22.2.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-09jmr+B41iThDSSYM7lgiEA0bF5KBJN6J3pQFc6Ru/PRSt+XEskOZzY8JWVp214hi2JnwBCC3NAK9wfLBkQp4w==","shasum":"fecdff29cc791cf88b05858d8ce726e179955944","tarball":"https://registry.npmjs.org/@charlesshook/strapi-upload-provider-minio/-/strapi-upload-provider-minio-0.1.0.tgz","fileCount":5,"unpackedSize":8084,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9s/zDSVrnMfC8qx1ltR3xbQ25ZJASTtUCMgKgJKql+QIhAIgUrd7TCXQrRRmTKqFlanSoghi4NZTPLQmnYcoM2n0K"}]},"_npmUser":{"name":"charlesshook","email":"charlesshookdev@proton.me"},"directories":{},"maintainers":[{"name":"charlesshook","email":"charlesshookdev@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strapi-upload-provider-minio_0.1.0_1748901390195_0.33971273266890756"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-02T21:56:30.098Z","0.1.0":"2025-06-02T21:56:30.390Z","modified":"2025-06-02T21:56:30.617Z"},"maintainers":[{"name":"charlesshook","email":"charlesshookdev@proton.me"}],"description":"Minio provider for Strapi upload","homepage":"https://github.com/charlesshook/strapi-provider-upload-minio#readme","keywords":["upload","minio","s3","strapi"],"repository":{"type":"git","url":"git://github.com/charlesshook/strapi-provider-upload-minio.git"},"author":{"name":"Charles Shook","url":"https://charlesshook.com/"},"bugs":{"url":"https://github.com/charlesshook/strapi-provider-upload-minio/issues"},"license":"MIT","readme":"# strapi-upload-provider-minio\n\n## Resources\n\n- [Strapi website](https://strapi.io/)\n- [Strapi provider documentation](https://docs.strapi.io/cms/providers)\n- [Minio JavaScript client API reference](https://min.io/docs/minio/linux/developers/javascript/API.html)\n\n## Installation\n\n```bash\nnpm install @charlesshook/strapi-upload-provider-minio --save\n```\n\n## Configuration\n\n- `provider` defines the name of the provider.\n- `providerOptions` is passed down to the constructor of the provider.\n- `providerOptions.params` is passed directly to the parameters of each method.\n  - `bucket` is the name of the bucket to upload to.\n\n### Provider Configuration\n\n`./config/plugins.js`\n\n```js\nmodule.exports = ({ env }) => ({\n  upload: {\n    config: {\n      provider: \"@charlesshook/strapi-provider-upload-minio\",\n      providerOptions: {\n        endPoint: env(\"MINIO_ENDPOINT\"),\n        port: env(\"MINIO_PORT\"),\n        useSSL: false,\n        accessKey: env(\"MINIO_ACCESS_KEY\"),\n        secretKey: env(\"MINIO_SECRET_KEY\"),\n        params: {\n          bucket: env(\"MINIO_BUCKET\"),\n        },\n      },\n      actionOptions: {\n        upload: {},\n        uploadStream: {},\n        delete: {},\n      },\n    },\n  },\n});\n```\n\n### Security Middleware Configuration\n\n`./config/middlewares.js`\n\n```js\nmodule.exports = [\n  // ...\n  {\n    name: \"strapi::security\",\n    config: {\n      contentSecurityPolicy: {\n        useDefaults: true,\n        directives: {\n          \"connect-src\": [\"'self'\", \"https:\"],\n          \"img-src\": [\n            \"'self'\",\n            \"data:\",\n            \"blob:\",\n            \"market-assets.strapi.io\",\n            `${env(\"MINIO_ENDPOINT\")}:${env(\"MINIO_PORT\")}/`,\n          ],\n          \"media-src\": [\n            \"'self'\",\n            \"data:\",\n            \"blob:\",\n            \"market-assets.strapi.io\",\n            `${env(\"MINIO_ENDPOINT\")}:${env(\"MINIO_PORT\")}/`,\n          ],\n          upgradeInsecureRequests: null,\n        },\n      },\n    },\n  },\n  // ...\n];\n```\n\n## Development of this provider\n\n### Test locally\n\nAt the root of the project directory run:\n\n```\nnpm link\n```\n\nInside the project that you want to add this package to:\n\n```\nnpm link @charlesshook/strapi-upload-provider-minio\n```\n","readmeFilename":"README.md","_rev":"1-617c49a86e1bfa3e8eed89c9ec8d6466"}