taolib.testing.file_storage.server.config
服务器配置模块。
使用 pydantic-settings 管理服务器配置。
Module Contents
-
class taolib.testing.file_storage.server.config.Settings
Bases: pydantic_settings.BaseSettings
文件存储服务配置。
-
mongo_url: str
-
mongo_db: str
-
redis_url: str
-
storage_backend: str
-
s3_endpoint_url: str | None
-
s3_access_key: str
-
s3_secret_key: str
-
s3_region: str
-
local_storage_path: str
-
cdn_enabled: bool
-
cdn_base_url: str
-
cdn_signing_key: str
-
signed_url_secret: str
-
signed_url_default_expires: int
-
upload_session_ttl_hours: int
-
max_chunk_size_bytes: int
-
default_chunk_size_bytes: int
-
thumbnail_enabled: bool
-
host: str
-
port: int
-
debug: bool
-
cors_origins: list[str]
-
model_config
-
_validate_secrets() → Self
-
taolib.testing.file_storage.server.config.settings