feat(mail): add MailSender port and explicit provider selection

This commit is contained in:
shira committed 2026-10-06 00:38:58 +03:00
1 parent e7d0d92ef9
commit 6153887eb5
26 files changed
+1253 -29

No files matched your search

+21
View File
@@ -19,6 +19,27 @@ SEAWEEDFS_BUCKET=lincodex
# before the first start; changing it later stops Kafka from using the existing volume.
KAFKA_CLUSTER_ID=SJv4PXUUSJGbK3eSPC57qA
# Mail. EMAIL_PROVIDER is required and selects exactly one transport:
# resend, smtp, or disabled. The working stand uses resend; this build has no
# Resend or SMTP transport yet, so both fail startup after their settings are
# validated. disabled sends nothing and reports the mail channel as
# unavailable; it never confirms an address or skips an account check.
EMAIL_PROVIDER=disabled
EMAIL_FROM=no-reply@example.com
EMAIL_TIMEOUT=10s
# Public origin for links in mail: https, or http only for a loopback host.
APP_PUBLIC_URL=http://localhost:8080
# Read only when EMAIL_PROVIDER=resend. Keep the real key in the server
# environment only.
RESEND_API_KEY=
# Read only when EMAIL_PROVIDER=smtp. SMTP_TLS_MODE is starttls or tls;
# plaintext SMTP is not supported.
SMTP_HOST=
SMTP_PORT=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_TLS_MODE=
# Optional PostgreSQL metrics login, created when the database volume is initialized.
POSTGRES_EXPORTER_USER=metrics_reader
POSTGRES_EXPORTER_PASSWORD=replace-this-metrics-password