Files
evig/environment.example
Cato 9a7210f196 chore(email): remove the dead Brevo SMTP fallback (#694)
Production's SMTP credential has answered "Login denied" since at least
2026-09-05, so every send that "fell back" to it delivered nothing while the
code reported a provider. Mail now goes through Resend (@bitbaum/mail-kit),
or Listmonk when enabled with Resend behind it; a Resend failure is reported
as { success: false } instead of handed to a relay that cannot log in.

Removes transporter.ts, the Brevo probe script, EMAIL_* env, the nodemailer
dependency and its override, and rewrites the email docs to match.
2026-11-10 10:14:57 +01:00

83 lines
2.9 KiB
Plaintext

# RevampIT Unified Environment Configuration
# Copy this file to .env.local and fill in your values
# ==========================================
# MAIN APPLICATION (Next.js)
# ==========================================
# Accounts (@bitbaum/accountkit) — generate: openssl rand -base64 64
AUTH_SECRET=your-super-secret-auth-key-change-in-production-min-32-chars
NEXTAUTH_URL=http://localhost:3001
NEXTAUTH_SECRET=your-super-secret-auth-key-change-in-production-min-32-chars
# "Sign in with OrangeCat" (client id "evig"): both, or the button is hidden.
# ORANGECAT_OAUTH_CLIENT_ID=
# ORANGECAT_OAUTH_CLIENT_SECRET=
# The shared bitbaum sign-in (Morulia): all three, or the button is hidden.
# Switched on by loki app-secrets.yml signin-on.
# SIGNIN_ISSUER=
# SIGNIN_CLIENT_ID=
# SIGNIN_CLIENT_SECRET=
# The email sign-in link and password recovery need account mail (RESEND_*).
# Database — SSOT: DATABASE_URL (app + auth share one pool)
# Local dev: Docker Postgres from docker-compose.yml (port 5433)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/revampit_cms
# Optional discrete parts (used when DATABASE_URL is unset)
DB_HOST=localhost
DB_PORT=5433
DB_NAME=revampit_cms
DB_USER=postgres
DB_PASSWORD=postgres
DB_SSL=false
# Optional Redis for auth rate limiter/lockout
REDIS_URL=redis://localhost:6380
ENABLE_REDIS_RATE_LIMITER=true
MEILI_MASTER_KEY=masterKey_change_in_production
MEILI_PORT=7700
# ==========================================
# PAYREXX (online payments — optional in dev)
# ==========================================
# SSOT: src/config/payrexx.ts · Setup: docs/operations/PAYREXX_SETUP.md
# Dev: leave unset → mock redirect at /api/payments/payrexx-mock-redirect
# PAYREXX_INSTANCE=your_instance_name
# PAYREXX_API_SECRET=your_api_secret
# PAYREXX_WEBHOOK_SECRET=your_webhook_signing_secret
# ==========================================
# SERVER
# ==========================================
PORT=3001
NODE_ENV=development
JWT_SECRET=your-super-secret-jwt-key-change-in-production-min-32-chars
JWT_EXPIRES_IN=24h
FRONTEND_URL=http://localhost:3001
NEXT_PUBLIC_SITE_URL=http://localhost:3001
# Feature flags
ENABLE_CMS=false
NEXT_PUBLIC_ENABLE_ROLE_SELECTION_ON_REGISTER=false
# Admin bootstrap (setup scripts only)
# ADMIN_PASSWORD=your-secure-admin-password-here
# File uploads (local fallback)
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=10485760
# ==========================================
# PRODUCTION OPS (optional — gitignored)
# ==========================================
# See .env.selfhost.local.example for Hetzner prod access via SSH tunnel.
# ==========================================
# SECURITY NOTES
# ==========================================
# 1. NEVER commit .env.local or .env.selfhost.local
# 2. Prod DB: self-hosted Postgres 17 on Hetzner (not cloud-hosted)
# 3. Dev DB: local Docker (npm run services:up)
# 4. Use HTTPS in production (required for secure cookies)