From 5cfbe70791dc66d26f223f8fdcf773fedb133ce5 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 15 Feb 2026 16:13:19 -0700 Subject: [PATCH] Replace Resend env vars with SMTP config Co-Authored-By: Claude Opus 4.6 --- .env.example | 7 +++++-- docker-compose.yml | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index ab08793..de24658 100644 --- a/.env.example +++ b/.env.example @@ -6,5 +6,8 @@ DB_PASSWORD="your_secure_password_here" NEXTAUTH_SECRET="generate-with-openssl-rand-base64-32" NEXTAUTH_URL="http://localhost:3000" -# Resend (for magic link emails) -RESEND_API_KEY="re_your_api_key_here" +# SMTP Email (Mailcow) +SMTP_HOST=mx.jeffemmett.com +SMTP_PORT=587 +SMTP_USER=noreply@jeffemmett.com +SMTP_PASS=changeme diff --git a/docker-compose.yml b/docker-compose.yml index ca548e2..bcf463c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,10 @@ services: - DATABASE_URL=postgresql://rvote:${DB_PASSWORD}@postgres:5432/rvote - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - NEXTAUTH_URL=https://rvote.online - - RESEND_API_KEY=${RESEND_API_KEY} + - SMTP_HOST=${SMTP_HOST:-mx.jeffemmett.com} + - SMTP_PORT=${SMTP_PORT:-587} + - SMTP_USER=${SMTP_USER:-noreply@jeffemmett.com} + - SMTP_PASS=${SMTP_PASS} - ROOT_DOMAIN=rvote.online - NEXT_PUBLIC_ROOT_DOMAIN=rvote.online networks: