feat: allow temporary intranet no-login mode

This commit is contained in:
2026-08-04 16:22:29 +08:00
parent 5ff58ac4d6
commit 1042b48102
6 changed files with 70 additions and 8 deletions
+1
View File
@@ -11,6 +11,7 @@ LEGACY_DEFAULT_SECRET = "change-me-to-a-long-random-string"
class Settings(BaseSettings):
# ---------- 运行环境 ----------
environment: Literal["development", "test", "production"] = "development"
auth_enabled: bool = False
# ---------- 数据库 ----------
DATABASE_URL: str = "sqlite+aiosqlite:///./pingwatch.db"