gz1007
|
a4d1ed6da5
|
feat: 支持通过环境变量配置搜索接口限流参数
|
2026-03-18 17:50:23 +08:00 |
|
CaIon
|
327cc5fa23
|
fix: harden token search with pagination, rate limiting and input validation
- Add configurable per-user token creation limit (max_user_tokens)
- Sanitize search input patterns to prevent expensive queries
- Add per-user search rate limiting (by user ID)
- Add pagination to search endpoint with strict page size cap
- Skip empty search fields instead of matching nothing
- Hide internal errors from API responses
- Fix Interface2String float64 formatting causing config parse failures
- Add float-string fallback in config system for int/uint fields
|
2026-02-06 17:52:19 +08:00 |
|
Leon
|
71c26a5843
|
feat: add environment variable switch for critical rate limit
|
2025-11-06 15:23:34 +08:00 |
|
Seefs
|
5010f2d004
|
format: package name -> github.com/QuantumNous/new-api (#2017)
|
2025-10-11 15:30:09 +08:00 |
|
licoy
|
af1f0a406d
|
feat: 增加GLOBAL_API_RATE_LIMIT_ENABLE与GLOBAL_WEB_RATE_LIMIT_ENABLE环境变量,支持是否开启访问速率控制
|
2024-11-12 20:02:33 +08:00 |
|
JustSong
|
483bd64d8f
|
Rename to One API
|
2023-04-22 21:14:09 +08:00 |
|
JustSong
|
4cbef0780e
|
Initial commit
|
2023-04-22 20:39:27 +08:00 |
|