mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-03 17:46:59 +01:00
Community technicians are public when active; Techniker terminology SSOT; dynamic ID discovery and empty-state fallbacks; Payrexx setup doc; dual-persona E2E for workshops registration and service appointment assign flow. Co-authored-by: Cursor <cursoragent@cursor.com>
82 lines
2.6 KiB
Plaintext
82 lines
2.6 KiB
Plaintext
# RevampIT Unified Environment Configuration
|
|
# Copy this file to .env.local and fill in your values
|
|
|
|
# ==========================================
|
|
# MAIN APPLICATION (Next.js)
|
|
# ==========================================
|
|
|
|
# Auth.js — 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
|
|
|
|
# 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
|
|
|
|
# Email — local dev uses Mailpit (docker-compose port 1025 / UI 8025)
|
|
EMAIL_HOST=localhost
|
|
EMAIL_PORT=1025
|
|
EMAIL_SECURE=false
|
|
EMAIL_USER=
|
|
EMAIL_PASS=
|
|
EMAIL_FROM=noreply@revamp-it.ch
|
|
|
|
# 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)
|