mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
feat(api): ratelimiting
because some group of idiots like me so much that they spam my endpoint
This commit is contained in:
parent
9e91f608b9
commit
a69a834899
4 changed files with 44 additions and 7 deletions
|
|
@ -3,3 +3,9 @@ main = ".output/server/index.mjs"
|
|||
workers_dev = true
|
||||
account_id = "fe5d9bd14160b07939282e45f63eb5ad"
|
||||
compatibility_date = "2022-09-10"
|
||||
|
||||
[[unsafe.bindings]]
|
||||
name = "RATE_LIMITER"
|
||||
type = "ratelimit"
|
||||
namespace_id = "1001"
|
||||
simple = { limit = 100, period = 30 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue