# =============================================================================
# TRACKTOR - Environment Configuration
# =============================================================================
# Copy this file to .env and adjust values as needed for your environment

# -----------------------------------------------------------------------------
# Application Environment
# -----------------------------------------------------------------------------
NODE_ENV=production

# -----------------------------------------------------------------------------
# Server Configuration
# -----------------------------------------------------------------------------
# Backend server settings
SERVER_HOST=0.0.0.0
SERVER_PORT=3000

# Frontend development server settings
CLIENT_HOST=0.0.0.0
CLIENT_PORT=5173

# -----------------------------------------------------------------------------
# API Configuration
# -----------------------------------------------------------------------------
# SvelteKit public environment variables (PUBLIC_ prefix required)
PUBLIC_API_BASE_URL=https://${LAZYCAT_APP_DOMAIN}

# -----------------------------------------------------------------------------
# Database Configuration
# -----------------------------------------------------------------------------
# Database file path (SQLite)
DATABASE_PATH=/data/tracktor.db

# -----------------------------------------------------------------------------
# Application Features
# -----------------------------------------------------------------------------
# SvelteKit public demo mode (PUBLIC_ prefix required)
PUBLIC_DEMO_MODE=false

# -----------------------------------------------------------------------------
# Security Configuration
# -----------------------------------------------------------------------------
# CORS origins (comma-separated list)
CORS_ORIGINS=https://${LAZYCAT_APP_DOMAIN},http://localhost:5173,http://localhost:3000,http://127.0.0.1:5173,http://127.0.0.1:3000
# -----------------------------------------------------------------------------
# Logging Configuration
# -----------------------------------------------------------------------------
# Log level: error, warn, info, debug
LOG_LEVEL=info

# Enable request logging
LOG_REQUESTS=true