feat: allow temporary intranet no-login mode
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user