feat: add /api/new_address ratelimit (#130)

This commit is contained in:
Dream Hunter
2024-04-15 14:14:38 +08:00
committed by GitHub
parent eafcf00e5e
commit 2ec1a61608
8 changed files with 74 additions and 12 deletions
+8
View File
@@ -154,6 +154,14 @@ BLACK_LIST = "" # 黑名单,用于过滤发件人,逗号分隔
binding = "DB"
database_name = "xxx" # D1 数据库名称
database_id = "xxx" # D1 数据库 ID
# 新建地址限流配置
# [[unsafe.bindings]]
# name = "RATE_LIMITER"
# type = "ratelimit"
# namespace_id = "1001"
# # 10 requests per minute
# simple = { limit = 10, period = 60 }
```
部署