taolib.testing.email_service.server.config#

邮件服务配置模块。

Attributes#

Classes#

Settings

邮件服务配置。

Module Contents#

class taolib.testing.email_service.server.config.Settings#

Bases: pydantic_settings.BaseSettings

邮件服务配置。

从环境变量加载,前缀为 EMAIL_SERVICE_

model_config#
mongo_url: str#
mongo_db: str#
redis_url: str#
host: str#
port: int#
debug: bool#
cors_origins: list[str]#
default_sender: str#
default_sender_name: str#
unsubscribe_base_url: str#
sendgrid_api_key: str#
mailgun_api_key: str#
mailgun_domain: str#
ses_region: str#
ses_access_key_id: str#
ses_secret_access_key: str#
smtp_host: str#
smtp_port: int#
smtp_username: str#
smtp_password: str#
smtp_use_tls: bool#
queue_poll_interval: float#
queue_batch_size: int#
max_retries: int#
taolib.testing.email_service.server.config.settings#