feat: migrate email to syntrex.pro + add RESEND/CORS env vars to prod compose

- Default from-address: noreply@syntrex.pro
- Password reset URL: syntrex.pro
- docker-compose.prod.yml: RESEND_API_KEY, EMAIL_FROM, SOC_CORS_ORIGIN
- CORS supports multi-origin (syntrex.pro + legacy domain)
This commit is contained in:
DmitrL-dev 2026-03-24 11:05:49 +10:00
parent 4a1bd09a13
commit 1b028099be
2 changed files with 4 additions and 4 deletions

View file

@ -146,7 +146,7 @@ func main() {
// Email service — Resend (set RESEND_API_KEY to enable real email delivery)
if resendKey := env("RESEND_API_KEY", ""); resendKey != "" {
fromAddr := env("EMAIL_FROM", "SYNTREX <noreply@xn--80akacl3adqr.xn--p1acf>")
fromAddr := env("EMAIL_FROM", "SYNTREX <noreply@syntrex.pro>")
resendSender := email.NewResendSender(resendKey, fromAddr)
emailSvc := email.NewService(resendSender, "SYNTREX", fromAddr)
srv.SetEmailService(emailSvc)