1.0.2 • Published 7 years ago

egg-cos v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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