Files
events-hub/backend/.env.example
T
joshuaandClaude Opus 5.5 613a4450cb SMTP settings on the Settings page, with a test (1.2.0)
SMTP server, port, user, password and from address are now Hub settings in
the database instead of SMTP_* in .env. The password is encrypted with
HUB_ENCRYPTION_KEY and never sent to the browser; a blank field keeps it.
POST /api/admin/settings/smtp-test logs in with the form's values (saved or
not) and sends a test email, returning the server's reason on failure; it is
rate limited and audited. On first start an existing SMTP_* setup is copied
into Settings once. The audit log no longer records the SMTP password.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMaqhrehXcHJe32jLL9
2026-10-28 01:26:41 +02:00

26 lines
1.2 KiB
Bash

# ─── Cross Events Hub — backend ────────────────────────────────────────────────
PORT=5200
DATABASE_URL=postgresql://postgres:password@localhost:5432/events_hub
# Where the Hub's dashboard runs (CORS, links in alert emails)
FRONTEND_URL=http://localhost:3200
# Signs admin login sessions. Long random string.
JWT_SECRET=change-me
# Encrypts install secrets and two-factor secrets. 32+ random characters; never change it
# once installs are registered (their secrets couldn't be read any more).
HUB_ENCRYPTION_KEY=change-me-to-32-or-more-random-characters
# Licence signing key (Ed25519, PEM). Create with `npm run generate-keys`. Keep the private
# key only on the Hub server and back it up: losing it means every install needs a new
# release with the new public key. Either a file path or the PEM itself (\n for newlines).
HUB_SIGNING_KEY_FILE=./keys/hub-signing-key.pem
# HUB_SIGNING_KEY=
# Behind a reverse proxy (nginx), so rate limits see real client IPs
TRUST_PROXY=1
# Alert emails: the SMTP server and the alert address are set on the Settings page.
# Background checks (alerts, heartbeat roll-up). false to switch off.
JOBS_ENABLED=true