3.0.0 • Published 3 years ago

strapi-provider-upload-tp-minio v3.0.0

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

Conventional Commits host# 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
overridePathoverridePathstring (overrides host settings)

The thing with the overridePath is, that it enables you to set a proxied image url, so that you can output the images through some kind of image proxy (eg. thumbor or imgproxy).

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

3.0.0

3 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago