feat: QPS Limit middleware (#2956)

* feat: QPS Limit middleware

* chore: use request-ip to get client ip

* feat: frequencyLimit schema
This commit is contained in:
Finley Ge
2024-10-25 10:08:59 +08:00
committed by GitHub
parent bb727b0710
commit 75494f8d01
8 changed files with 144 additions and 28 deletions

View File

@@ -33,6 +33,7 @@
"papaparse": "5.4.1",
"pdfjs-dist": "4.4.168",
"pg": "^8.10.0",
"request-ip": "^3.3.0",
"tiktoken": "^1.0.15",
"tunnel": "^0.0.6",
"turndown": "^7.1.2"
@@ -46,6 +47,7 @@
"@types/node-cron": "^3.0.11",
"@types/papaparse": "5.3.7",
"@types/pg": "^8.6.6",
"@types/request-ip": "^0.0.37",
"@types/tunnel": "^0.0.4",
"@types/turndown": "^5.0.4"
}