This commit is contained in:
riglen
2026-04-01 16:19:08 +08:00
parent caa3aa49f2
commit 167154481c
5 changed files with 897 additions and 4 deletions

View File

@@ -23,11 +23,13 @@ class Settings(BaseSettings):
public_base_url: str | None = None
request_timeout_seconds: float = 20.0
cache_ttl_seconds: int = 900
bundle_cache_ttl_seconds: int = 600
max_proxy_name_length: int = 80
default_user_agent: str = "sub-provider/0.2"
sources_file: Path = CONFIG_DIR / "sources.yaml"
rules_dir: Path = CONFIG_DIR / "rules"
bundle_cache_dir: Path = ROOT_DIR / "output" / "bundle-cache"
model_config = SettingsConfigDict(
env_file=ROOT_DIR / ".env",