mail config 적용 .
This commit is contained in:
1 parent
dc50fc6d8c
commit
7185cfbb72
4 files changed
+56
-10
No files matched your search
+13
-1
@@ -89,7 +89,13 @@ class Settings(BaseSettings):
|
||||
google_api_key: str = ""
|
||||
google_model: str = "gemini-2.5-flash"
|
||||
|
||||
# ── 외부 연동: 이메일 (SMTP, 실연동) ─────────────────────
|
||||
# ── 외부 연동: 이메일 ─────────────────────────────────────
|
||||
# 1순위: Azure Communication Services(ACS) Email — endpoint + accesskey.
|
||||
# AZURE_ACS_SENDER 는 검증된 MailFrom 주소(예: donotreply@triplepick.o2o.kr).
|
||||
azure_acs_endpoint: str = ""
|
||||
azure_acs_accesskey: str = ""
|
||||
azure_acs_sender: str = ""
|
||||
# 2순위(폴백): SMTP — ACS 미설정 시 사용.
|
||||
smtp_host: str = ""
|
||||
smtp_port: int = 587
|
||||
smtp_user: str = ""
|
||||
@@ -97,6 +103,12 @@ class Settings(BaseSettings):
|
||||
smtp_from: str = "TriplePick <no-reply@triplepick.app>"
|
||||
smtp_starttls: bool = True
|
||||
|
||||
@property
|
||||
def acs_configured(self) -> bool:
|
||||
return bool(
|
||||
self.azure_acs_endpoint and self.azure_acs_accesskey and self.azure_acs_sender
|
||||
)
|
||||
|
||||
@property
|
||||
def cors_origin_list(self) -> list[str]:
|
||||
if self.cors_origins.strip() == "*":
|
||||
|
||||
Reference in new issue
Block a user