This commit is contained in:
riglen
2026-04-20 11:09:36 +08:00
parent 1cbf080e1e
commit 0a46ebf0a8
15 changed files with 717 additions and 3 deletions

View File

@@ -26,6 +26,8 @@ class Settings(BaseSettings):
bundle_cache_ttl_seconds: int = 600
max_proxy_name_length: int = 80
default_user_agent: str = "sub-provider/0.2"
database_url: str = Field(default=f"sqlite:///{(DATA_DIR / 'app.db').resolve().as_posix()}")
database_echo: bool = False
config_dir: Path = CONFIG_DIR
sources_file: Path = CONFIG_DIR / "sources.yaml"