Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (39 loc) · 1.87 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.87 KB

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 following the manual to create upload providers.

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 Label Internal Name Value
Access API Token accessKey string
Secret Access Token secretKey string
Bucket bucket string
Endpoint endPoint string
Port port string
SSL useSSL string(true for ssl, anything else for false)

Example Hash

The resulting configuration hash should look like the following:

const cfg = {
  accessKey: 'minio',
  secretKey: 'MySuperSafeSecretKeyAsAHashedValue',
  bucket: 'my-bucket',
  endPoint: 'minio.example.com',
  port: 9000,
  useSSL: true,
};

// if you are using Docker the endPoint needs to resemble the container name (or the service name) of your minio instance
// ...
// endPoint: 'minio',
// useSSL: false,
// ...

Resources

Links