f21d981585
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Validate - Code Quality (push) Failing after 1m34s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 47s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 1m5s
CI/CD Pipeline / Unit Tests (push) Successful in 4m57s
CI/CD Pipeline / Integration Tests (push) Successful in 2m13s
CI/CD Pipeline / Frontend Lint (push) Successful in 28s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 54s
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Successful in 12m48s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m10s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 3m19s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m26s
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
29 lines
835 B
Python
Executable File
29 lines
835 B
Python
Executable File
"""API 服务配置(向后兼容层)。
|
|
|
|
统一配置已迁移到 packages.config.api_settings。
|
|
新代码请使用:
|
|
from packages.config import APISettings, get_api_settings
|
|
|
|
本文件保留 Settings 类名、get_settings() 函数、settings 模块级单例,
|
|
确保所有旧的 import 路径仍然有效。
|
|
"""
|
|
|
|
from packages.config import APISettings as Settings
|
|
from packages.config import get_api_settings as get_settings
|
|
from packages.config import reload_settings_cache
|
|
|
|
# 模块级单例(向后兼容)
|
|
settings = get_settings()
|
|
|
|
|
|
# 暴露旧的 reload_settings 函数名
|
|
def reload_settings():
|
|
"""重新加载配置(测试用)。"""
|
|
reload_settings_cache()
|
|
global settings
|
|
settings = get_settings()
|
|
return settings
|
|
|
|
|
|
__all__ = ["Settings", "get_settings", "settings", "reload_settings"]
|