1.0.0 • Published 10 months ago

@notuslabs/strapi-provider-upload-minio v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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:

VariableDescriptionDefault Value
accessKeyThe access key for your MinIO instance.undefined
secretKeyThe secret key for your MinIO instance.undefined
endpointURLThe endpoint URL for your MinIO instance.undefined
bucketThe bucket name for your MinIO instance.undefined
usePathStyleWhether to use path style URLs (<S3_INSTANCE_HOST>/<YOUR_BUCKET>) instead of (<YOUR_BUCKET>.<S3_INSTANCE_HOST>).true
publicURLThe URL which will be given for your files through StrapiendpointURL
extraOptionsExtra options to pass to the MinIO client. See docs for more infoundefined
1.0.0

10 months ago