0.0.1 • Published 4 years ago

strapi-provider-upload-movez-minio v0.0.1

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

Conventional Commits

strapi-provider-upload-tp-minio

This upload provider uses the JavaScript Minio.Client to upload files to a (self hosted) instance of Minio.

It's compatible with the the strapi 3.1.1.

Notice We currently use it in conjunction with Docker.

Config

There are only a couple of settings one has to provide to make it work. The following config settings are available:

Config LabelInternal NameValue
Access API TokenaccessKeystring
Secret Access TokensecretKeystring
Bucketbucketstring
EndpointendPointstring
Portportstring
SSLuseSSLstring(true for ssl, anything else for false)
Folderfolderstring
isDockerisDockerbool
Hosthoststring

Example Hash

The resulting configuration file should look like this:

// File: ./config/plugins.js

module.exports = ({ env }) => ({
  upload: {
    provider: 'tp-minio',
    providerOptions: {
      accessKey: env('MINIO_ACCESS_KEY'),
      secretKey: env('MINIO_SECRET_KEY'),
      bucket: env('MINIO_BUCKET'),
      endPoint: env('MINIO_ENDPOINT'),
      port: parseInt(env('MINIO_PORT'), 10) || 9000,
      useSSL: env('MINIO_USE_SSL') === 'true',
      folder: 'cms',
      isDocker: true,
      host: env('MINIO_HOST'),
    },
  },
});

Resources

Links