We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.default.js
config.redis = { client: { port: 6379, // Redis port host: '127.0.0.1', // Redis host password: '', db: 0, } } config.ratelimiter = { // db: {},//如已配置egg-redis 可删除此配置 router: [ { path: '/api', max: 5, time: '7s', //时间单位 s m h d y ... message: '您的访问太快,请稍后再试!'//自定义请求超限错误信息 } ] }
plugin.js
ratelimiter: { enable: true, package: 'egg-ratelimiter', },
The text was updated successfully, but these errors were encountered:
@BGOnline-CN 原谅我才看到这个issues,这个插件需要同时安装egg-redis才可使用
Sorry, something went wrong.
No branches or pull requests
config.default.js
plugin.js
The text was updated successfully, but these errors were encountered: