[APP]
NAME = "LeAudit Platform"
HOST = "0.0.0.0"
PORT = 8096
REGION = "default"
CORS_ORIGINS = ["*"]

[JWT]
SECRET_KEY = "gdyc-super-secrets-jjwtt-key-change-this-in-production-20250721-from-login-callback"
ACCESS_TOKEN_EXPIRE_HOURS = 6
ALGORITHM = "HS256"

[DB]
HOST = "nas.7bm.co"
PORT = 54302
NAME = "leaudit_platform"
USER = "docauditai_admin"
PASSWORD = "zhfw*123*"

[REDIS]
HOST = "nas.7bm.co"
PORT = 63709
DB = 10
PASSWORD = "960818"
KEY_PREFIX = "zhfw"

[OSS]
ENDPOINT = "nas.7bm.co:9000"
BASE_URL = "http://nas.7bm.co:9000"
ACCESS_KEY = "44GJxXo3YjKf6NBFZrSI"
SECRET_KEY = "vQhCdFgPngDvFJtMGALM1057pAl7acGoBAhFQ7NK"
BUCKET = "leaudit"
REGION = ""

[LLM]
BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
MODEL = "qwen3.5-35b-a3b"
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"

[VLM]
BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
MODEL = "qwen3.5-35b-a3b"
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"

[OCR]
BASE_URL = "http://i-2.gpushare.com:44112/"
TIMEOUT = 300

[LEAUDIT]
RULES_DIR = "rules"
RESCUE_MODE = "auto"
LLM_MAX_CONCURRENCY = 5
VLM_MAX_CONCURRENCY = 3
LLM_REQUEST_TIMEOUT = 120
LLM_RETRY_MAX_ATTEMPTS = 3
LLM_RETRY_BACKOFF_BASE_SECONDS = 1
VLM_REQUEST_TIMEOUT = 45
VLM_RETRY_MAX_ATTEMPTS = 2
VLM_RETRY_BACKOFF_BASE_SECONDS = 1
OCR_VLM_CONCURRENCY = 32
OCR_RETRY_MAX_ATTEMPTS = 3
OCR_RETRY_BACKOFF_BASE_SECONDS = 1
SIGNATURE_PROBE_CONCURRENCY = 2
SIGNATURE_PROBE_TIMEOUT = 20
SIGNATURE_PROBE_RETRY_MAX_ATTEMPTS = 2
SIGNATURE_PROBE_RETRY_BACKOFF_BASE_SECONDS = 0.5
WORKER_QUEUE_URGENT = "leaudit.urgent"
WORKER_QUEUE_NORMAL = "leaudit.normal"
WORKER_CONCURRENCY = 2
RUN_LOCK_SECONDS = 1800
TASK_SOFT_TIME_LIMIT = 3300
TASK_TIME_LIMIT = 3600
