From 0ec3766447078c3264cbf7cc45e6fe7e959c51f9 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 6 Jun 2026 20:37:50 -0400 Subject: [PATCH] Wire SMTP env vars into main-site container, document in .env.example Contact form needs SMTP_HOST/PORT/SECURE/USER/PASS and CONTACT_TO passed through docker-compose. Added to main-site environment block and documented in .env.example. Co-Authored-By: Claude Sonnet 4.6 --- .env.example | 11 +++++++++++ docker-compose.yml | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/.env.example b/.env.example index 5075b90..e9878bd 100644 --- a/.env.example +++ b/.env.example @@ -14,3 +14,14 @@ # # All other secrets (access tokens, passwords, etc.) belong only in estore/.env # — never put them here. + +# ── Main site admin ─────────────────────────────────────────────────────────── +MAIN_ADMIN_PASSWORD= + +# ── Contact form (main-site) ────────────────────────────────────────────────── +SMTP_HOST=mail.beachpartyballoons.com +SMTP_PORT=587 +SMTP_SECURE=false +SMTP_USER=info@beachpartyballoons.com +SMTP_PASS= +CONTACT_TO=info@beachpartyballoons.com diff --git a/docker-compose.yml b/docker-compose.yml index 22e2568..18fd182 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,12 @@ services: environment: NODE_ENV: production ADMIN_PASSWORD: ${MAIN_ADMIN_PASSWORD} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT:-587} + SMTP_SECURE: ${SMTP_SECURE:-false} + SMTP_USER: ${SMTP_USER} + SMTP_PASS: ${SMTP_PASS} + CONTACT_TO: ${CONTACT_TO} volumes: - ./main-site/update.json:/usr/src/app/update.json restart: always