Skip to content

romoo/egg-cos

Repository files navigation

egg-cos

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-cos --save

Usage

// {app_root}/config/plugin.js
exports.cos = {
  enable: true,
  package: 'egg-cos',
};

Configuration

// {app_root}/config/config.default.js
exports.cos = {
  client: {
    secretId: '',
    secretKey: '',
    bucket: '',
    region: '',
  }
};

Init in egg agent, default is false:

exports.cos = {
  useAgent: true,
};

Questions & Suggestions

Please open an issue here.

License

MIT

Releases

No releases published

Packages

No packages published