Skip to content

mete-work/egg-minio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Egg plugin for MinIO

Config

// {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,
    },
  };

Usage

You can access MinIO object with this.app.minio.