$ npm i egg-cos --save
// {app_root}/config/plugin.js
exports.cos = {
enable: true,
package: 'egg-cos',
};
// {app_root}/config/config.default.js
exports.cos = {
client: {
secretId: '',
secretKey: '',
bucket: '',
region: '',
}
};
Init in egg agent, default is false
:
exports.cos = {
useAgent: true,
};
Please open an issue here.