细节优化

This commit is contained in:
amb
2026-09-02 18:04:41 +08:00
parent cecb5f2714
commit 8ec7856bfc
21 changed files with 1260 additions and 569 deletions
+4
View File
@@ -38,6 +38,10 @@ class Settings(BaseSettings):
rate_limit_per_token_per_min: int = 60
rate_limit_per_ip_per_min: int = 30
# --- 数据保留 ---
# 访问日志保留天数,超过自动清理(0 = 永久保留,不推荐)
access_log_retention_days: int = 90
# --- CORS ---
frontend_origin: str = "http://localhost:5173"