@notuslabs/strapi-provider-upload-minio
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Strapi MinIO Provider Upload

This simple script allows you to upload any media to your MinIO instance.

Installation

# Using NPM
npm i @notuslabs/strapi-provider-upload-minio

# Using Yarn
yarn add @notuslabs/strapi-provider-upload-minio

Configuration

Create or update the file at ./config/plugins.js with the following:

module.exports = {
  // ...

  upload: {
    config: {
      provider: "strapi-provider-upload-minio",
      providerOptions: {
        accessKey: env("MINIO_ACCESS_KEY"),
        secretKey: env("MINIO_SECRET_KEY"),
        endpointURL: env("MINIO_ENDPOINT_URL"), // Example: https://play.min.io (must include protocol, port is optional)
        bucket: env("MINIO_BUCKET"),
      },
    },
  },

  // ...
};

This are the available options:

Variable Description Default Value
accessKey The access key for your MinIO instance. undefined
secretKey The secret key for your MinIO instance. undefined
endpointURL The endpoint URL for your MinIO instance. undefined
bucket The bucket name for your MinIO instance. undefined
usePathStyle Whether to use path style URLs (<S3_INSTANCE_HOST>/<YOUR_BUCKET>) instead of (<YOUR_BUCKET>.<S3_INSTANCE_HOST>). true
publicURL The URL which will be given for your files through Strapi endpointURL
extraOptions Extra options to pass to the MinIO client. See docs for more info undefined

Readme

Keywords

none

Package Sidebar

Install

npm i @notuslabs/strapi-provider-upload-minio

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

7.93 kB

Total Files

4

Last publish

Collaborators

  • notus_thallesp