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 <noreply@anthropic.com>
This commit is contained in:
parent
aee1f10179
commit
0ec3766447
11
.env.example
11
.env.example
@ -14,3 +14,14 @@
|
|||||||
#
|
#
|
||||||
# All other secrets (access tokens, passwords, etc.) belong only in estore/.env
|
# All other secrets (access tokens, passwords, etc.) belong only in estore/.env
|
||||||
# — never put them here.
|
# — 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
|
||||||
|
|||||||
@ -25,6 +25,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
ADMIN_PASSWORD: ${MAIN_ADMIN_PASSWORD}
|
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:
|
volumes:
|
||||||
- ./main-site/update.json:/usr/src/app/update.json
|
- ./main-site/update.json:/usr/src/app/update.json
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user