# Server # Host interface to listen on (defaults to 127.0.0.1 for local only, use 0.0.0.0 for all network interfaces) HOST=127.0.0.1 PORT=4208 # HTTPS server port (defaults to 8443, set to 0 or false to disable) HTTPS_PORT=8443 # Backend Monitor Interface port (served when backend is started with npm run dev) MONITOR_PORT=4210 # Optional custom TLS cert/key paths (defaults to auto-generated certs/key.pem and certs/cert.pem) # HTTPS_KEY_PATH=./certs/key.pem # HTTPS_CERT_PATH=./certs/cert.pem BODY_LIMIT=100mb # CORS — comma-separated allowed origins CORS_ORIGINS=http://localhost:5173 # Auth — Google OAuth client ID and JWT signing secret GOOGLE_CLIENT_ID= JWT_SECRET=fallback_secret_please_change_in_production # Auto-create user on first login (when false, only allowlisted or invited emails can sign in / create an account) IMPLICIT_CREATE=false # Database Provider — 'sqlite' or 'mssql' (defaults to 'mssql', or 'sqlite' if SQLITE_PATH is set) DB_PROVIDER=sqlite # SQLite database path (e.g. './data/dash.db' or ':memory:' for in-memory) SQLITE_PATH=./data/dash.db # Database — MSSQL (used when DB_PROVIDER=mssql) MSSQL_SERVER= MSSQL_DATABASE= MSSQL_USER= MSSQL_PASSWORD= MSSQL_PORT=1433 MSSQL_ENCRYPT=false MSSQL_TRUST_SERVER_CERTIFICATE=false # Article search — category filters (comma-separated IDs) KAT_SKIP= KAT_LISTS=0 # Tax zone name for VAT rates (tSteuerzone.cName) STEUER_ZONE=Zone-EU # OpenRouter (leave OPENROUTER_API_URL unset for default OpenRouter endpoint) # OPENROUTER_API_URL=http://127.0.0.1:8787/api/v1/chat/completions OPENROUTER_FREE_KEY=sk-or-v1-3d3c4e OPENROUTER_FREE_MODEL=openrouter/free OPENROUTER_PAID_MODEL=openai/gpt-6-luna:floor # Backup Service # BACKUP_ENABLED=true # BACKUP_DIR=./data/backups # BACKUP_INTERVAL_MS=3600000 # BACKUP_HOURLY_RETENTION=50 # BACKUP_DAILY_RETENTION=50 # Redis (Healthcheck Latency Metric) REDIS_HOST=127.0.0.1 REDIS_PORT=6379 REDIS_PASSWORD= REDIS_DB=0 REDIS_KEY=healthcheck:latency_ms # REDIS_URL=redis://127.0.0.1:6379 # Health Monitor Service # HEALTH_MONITOR_ENABLED=true # HEALTH_MONITOR_INTERVAL_MS=60000