palixir / wabe

Your backend in minutes not days for Node.js / Bun
https://wabe.dev
Apache License 2.0
137 stars 8 forks source link

Add rate limit on wabe start #77

Open coratgerl opened 6 days ago

coratgerl commented 6 days ago

Is your feature request related to a problem? Please describe.

Wobe has a middleware to correctly handle rate limit, we need to use it on wabe in server/index.ts file.

Describe the solution you'd like

Call rateLimit Wobe middleware into the server/index.ts file. 100 requests by second should be good for default configuration. We also need to add a config object into security object of the Wabe config to let the user change the number of request.