# Bulwark Webmail - Development Configuration
# Copy this file to .env.local to run with the built-in mock JMAP server.
# No external mail server required - great for UI development and testing.
#
# Usage:
#   cp .env.dev.example .env.local
#   npm run dev
#   Open http://localhost:3000 - log in with any username/password.

# =============================================================================
# Mock JMAP Server
# =============================================================================

# Enable the built-in mock JMAP server (served at /api/dev-jmap)
DEV_MOCK_JMAP=true

# Point the app at its own mock endpoint.
# IMPORTANT: This must match the origin the app runs on (default: port 3000).
# Using a different port (e.g. 3001) will cause CORS errors.
JMAP_SERVER_URL=/api/dev-jmap

# =============================================================================
# App
# =============================================================================

APP_NAME=Bulwark Webmail (Dev)

# =============================================================================
# Session & Settings Sync (optional for dev)
# =============================================================================

SESSION_SECRET=dev-secret-not-for-production
SETTINGS_SYNC_ENABLED=true

# =============================================================================
# Logging (verbose for development)
# =============================================================================

LOG_FORMAT=text
LOG_LEVEL=debug

# =============================================================================
# Login Page Customization (optional)
# =============================================================================

# LOGIN_COMPANY_NAME=Dev Team
# LOGIN_IMPRINT_URL=https://example.com/imprint
# LOGIN_PRIVACY_POLICY_URL=https://example.com/privacy
# LOGIN_WEBSITE_URL=https://example.com

# Per-domain branding overrides. Each entry must have "host" (exact or
# "*.subdomain" wildcard) plus any subset of branding fields to override.
# Unset fields fall through to the global values above.
# DOMAIN_BRANDING=[{"host":"localhost","loginCompanyName":"Local Dev"}]
