# Database
DATABASE_PRIMARY_POOLER_URL=

# Supabase (for storage and auth)
SUPABASE_URL=
# OR
NEXT_PUBLIC_SUPABASE_URL=
SUPABASE_SECRET_KEY=

# Redis Queue (for BullMQ job processing)
# In production, uses Railway internal Redis (redis://...railway.internal:6379)
REDIS_QUEUE_URL=redis://localhost:6379
REDIS_URL=redis://localhost:6379

# LLMs (for document processing)
OPENAI_API_KEY=

# Specter retention (plan H4): days for screenshots and conversations.
# Needs no model key; the defaults 30/90 are to be confirmed (E6).
SPECTER_ATTACHMENT_RETENTION_DAYS=30
SPECTER_CONVERSATION_RETENTION_DAYS=90

# Google AI (for document tag embeddings)
GOOGLE_GENERATIVE_AI_API_KEY=
# Document classification sends invoice/vault text to Google Gemini. Off
# unless exactly "true" -- a key alone does not switch it on (M8). Before
# enabling: Google into the sub-processor register (B8) and the AVVs.
DOCUMENT_AI_ENABLED=false

# Brevo (transaktionale Mails)
BREVO_API_KEY=
BREVO_SENDER_EMAIL=noreply@oemer-coskun.de
BREVO_SENDER_NAME=Ömer Coskun - IT Services
BREVO_REPLY_TO=mail@oemer-coskun.de

# Environment
NODE_ENV=development
WORKER_ENV=development

# Railway (set automatically in production)
# RAILWAY_ENVIRONMENT=production
# RAILWAY_REPLICA_REGION=europe-west4-drams3a

# Optional: Health check board
BOARD_USERNAME=
BOARD_PASSWORD=

# Optional: Server port
PORT=8080

# Mistral
MISTRAL_API_KEY=




# Invoice
INVOICE_JWT_SECRET=

# Exa
EXA_API_KEY=

# CompanyEnrich (customer enrichment)
COMPANY_ENRICH_API_KEY=

# Gate (Telegram-Freigabe, eigener Bot, nicht der Midday-Assistent)
GATE_TELEGRAM_BOT_TOKEN=
GATE_TELEGRAM_CHAT_ID=
GATE_TEAM_ID=
GATE_USER_ID=
# Days past the due date before the first payment reminder (default 1,
# never below 1: § 286 Abs. 1 BGB needs the reminder after the due date).
# DUNNING_GRACE_DAYS=1

# Portal und Aufstellung
PORTAL_BASE_URL=https://portal.oemer-coskun.de
# Required in production (packages/utils/src/envs.ts; the worker refuses to
# start without them): the operator dashboard, the API and the homepage,
# which also serves the mail images.
MIDDAY_DASHBOARD_URL=http://localhost:3001
MIDDAY_API_URL=http://localhost:3003
HOMEPAGE_URL=http://localhost:3000
STATEMENT_JWT_SECRET=
# Die Rechtsangaben des Betreibers fuer die Aufstellung-PDF kommen aus
# operator_profile, nicht aus Umgebungsvariablen: Einstellungen -> Betreiberdaten.
