rule重构

This commit is contained in:
riglen
2026-04-20 10:35:03 +08:00
parent f449aebbc7
commit 1cbf080e1e
11 changed files with 2199 additions and 485 deletions

View File

@@ -27,7 +27,13 @@ class Settings(BaseSettings):
max_proxy_name_length: int = 80
default_user_agent: str = "sub-provider/0.2"
config_dir: Path = CONFIG_DIR
sources_file: Path = CONFIG_DIR / "sources.yaml"
app_config_file: Path = CONFIG_DIR / "app.yaml"
clients_file: Path = CONFIG_DIR / "clients.yaml"
regions_file: Path = CONFIG_DIR / "regions.yaml"
policy_groups_file: Path = CONFIG_DIR / "policy-groups.yaml"
rules_config_file: Path = CONFIG_DIR / "rules.yaml"
rules_dir: Path = CONFIG_DIR / "rules"
bundle_cache_dir: Path = ROOT_DIR / "output" / "bundle-cache"
fetch_cache_dir: Path = DATA_DIR / "fetch-cache"