e80e8febd8
- DB: add region column to leaudit_rule_sets + leaudit_rule_type_bindings - DB: change UNIQUE constraint from (rule_type) to (rule_type, region) - Config: add APP_REGION to app.toml + AppSettings + __init__.pyi - AuditServiceImpl: filter bindings by APP_REGION - RuleServiceImpl: ListBindings/CreateBinding use APP_REGION - Seed script: accept --region arg, tag rules by region - OssPathUtils: BuildRuleYamlKey already accepts Region parameter Each region can now have its own independent copy of the same rule_type, stored in separate OSS paths and DB rows, keyed by region.
60 lines
878 B
Python
60 lines
878 B
Python
"""类型存根 —— 为 IDE 提供动态导出变量的类型信息。"""
|
|
|
|
# APP
|
|
APP_NAME: str
|
|
APP_HOST: str
|
|
APP_PORT: int
|
|
APP_REGION: str
|
|
APP_CORS_ORIGINS: str
|
|
|
|
# JWT
|
|
JWT_SECRET_KEY: str
|
|
JWT_ACCESS_TOKEN_EXPIRE_HOURS: int
|
|
JWT_ALGORITHM: str
|
|
|
|
# DB
|
|
DB_HOST: str
|
|
DB_PORT: int
|
|
DB_NAME: str
|
|
DB_USER: str
|
|
DB_PASSWORD: str
|
|
ASYNCPG_DATABASE_URL: str
|
|
|
|
# Redis
|
|
REDIS_HOST: str
|
|
REDIS_PORT: int
|
|
REDIS_DB: int
|
|
REDIS_PASSWORD: str
|
|
|
|
# OSS
|
|
OSS_ENDPOINT: str
|
|
OSS_BASE_URL: str
|
|
OSS_ACCESS_KEY: str
|
|
OSS_SECRET_KEY: str
|
|
OSS_BUCKET: str
|
|
OSS_REGION: str
|
|
OSS_USE_SSL: bool
|
|
OSS_PRESIGN_EXPIRE_SECONDS: int
|
|
|
|
# LLM
|
|
LLM_BASE_URL: str
|
|
LLM_MODEL: str
|
|
LLM_API_KEY: str
|
|
|
|
# VLM
|
|
VLM_BASE_URL: str
|
|
VLM_MODEL: str
|
|
|
|
# OCR
|
|
OCR_BASE_URL: str
|
|
OCR_TIMEOUT: int
|
|
|
|
# LEAUDIT
|
|
LEAUDIT_RULES_DIR: str
|
|
LEAUDIT_RESCUE_MODE: str
|
|
LEAUDIT_LLM_MAX_CONCURRENCY: int
|
|
LEAUDIT_VLM_MAX_CONCURRENCY: int
|
|
|
|
# 常量
|
|
ROOT_PATH: object
|