feat: allow pass hostname in docker env (#30975)

This commit is contained in:
wangxiaolei
2026-01-14 19:30:37 +08:00
committed by GitHub
parent f33b1a3332
commit 0ec2b12e65
8 changed files with 36 additions and 19 deletions

View File

@@ -949,6 +949,12 @@ class MailConfig(BaseSettings):
default=False,
)
SMTP_LOCAL_HOSTNAME: str | None = Field(
description="Override the local hostname used in SMTP HELO/EHLO. "
"Useful behind NAT or when the default hostname causes rejections.",
default=None,
)
EMAIL_SEND_IP_LIMIT_PER_MINUTE: PositiveInt = Field(
description="Maximum number of emails allowed to be sent from the same IP address in a minute",
default=50,