// {app_root}/config/plugin.js
minio: {
enable: true,
package: '@mete-work/egg-minio',
},
// {app_root}/config/config.ts
config.minio = {
client: {
endPoint: 'osd.mete.work',
accessKey: 'accessKey',
secretKey: 'secretKey',
useSSL: true,
port: 443,
},
};
You can access MinIO object with this.app.minio
.