# Laminar - Open-source observability platform for AI agents
# https://laminar.sh/

# =============================================================================
# REQUIRED: Core Configuration
# =============================================================================

# PostgreSQL Configuration
LAMINAR_POSTGRES_VERSION=16-alpine
LAMINAR_POSTGRES_USER=postgres
LAMINAR_POSTGRES_PASSWORD=change_me_in_production
LAMINAR_POSTGRES_DB=laminar

# ClickHouse Configuration
LAMINAR_CLICKHOUSE_VERSION=latest
LAMINAR_CLICKHOUSE_USER=clickhouse
LAMINAR_CLICKHOUSE_PASSWORD=change_me_in_production

# Shared Secret Token (used for inter-service authentication)
LAMINAR_SHARED_SECRET_TOKEN=shared_secret_change_in_production

# AEAD Secret Key (must be exactly 32 bytes / 64 hex characters)
LAMINAR_AEAD_SECRET_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

# =============================================================================
# OPTIONAL: External Service API Keys
# =============================================================================

# OpenAI API Key - Used for generating chat names
# LAMINAR_OPENAI_API_KEY=sk-...

# Google Generative AI API Key - Required for Signals/AI monitoring feature
# LAMINAR_GOOGLE_GENERATIVE_AI_API_KEY=...

# =============================================================================
# OPTIONAL: Image Versions
# =============================================================================

# LAMINAR_APP_SERVER_VERSION=latest
# LAMINAR_FRONTEND_VERSION=latest
# LAMINAR_QUERY_ENGINE_VERSION=latest
# LAMINAR_QUICKWIT_VERSION=v0.8.2

# Custom registries (useful for private mirror/proxy)
# LAMINAR_APP_SERVER_REGISTRY=ghcr.io/lmnr-ai/
# LAMINAR_FRONTEND_REGISTRY=ghcr.io/lmnr-ai/
# LAMINAR_QUERY_ENGINE_REGISTRY=ghcr.io/lmnr-ai/

# =============================================================================
# OPTIONAL: Port Overrides
# =============================================================================

# LAMINAR_FRONTEND_PORT_OVERRIDE=5667          # Web UI
# LAMINAR_APP_SERVER_PORT_OVERRIDE=8000        # HTTP API
# LAMINAR_APP_SERVER_GRPC_PORT_OVERRIDE=8001   # gRPC
# LAMINAR_APP_SERVER_RT_PORT_OVERRIDE=8002     # Real-time API
# LAMINAR_QUERY_ENGINE_PORT_OVERRIDE=8903      # Query Engine
# LAMINAR_QUICKWIT_PORT_OVERRIDE=7280          # Quickwit UI/API

# =============================================================================
# OPTIONAL: NextAuth Configuration
# =============================================================================

# LAMINAR_NEXTAUTH_URL=http://localhost:5667
# LAMINAR_NEXTAUTH_SECRET=nextauth_secret_change_in_production
# LAMINAR_NEXT_PUBLIC_URL=http://localhost:5667

# =============================================================================
# OPTIONAL: Resource Limits
# =============================================================================

# LAMINAR_FRONTEND_CPU_LIMIT=1.0
# LAMINAR_FRONTEND_MEMORY_LIMIT=1G
# LAMINAR_APP_SERVER_CPU_LIMIT=2.0
# LAMINAR_APP_SERVER_MEMORY_LIMIT=2G
# LAMINAR_POSTGRES_CPU_LIMIT=1.0
# LAMINAR_POSTGRES_MEMORY_LIMIT=1G
# LAMINAR_CLICKHOUSE_CPU_LIMIT=2.0
# LAMINAR_CLICKHOUSE_MEMORY_LIMIT=2G
# LAMINAR_QUICKWIT_CPU_LIMIT=1.0
# LAMINAR_QUICKWIT_MEMORY_LIMIT=1G
# LAMINAR_QUERY_ENGINE_CPU_LIMIT=1.0
# LAMINAR_QUERY_ENGINE_MEMORY_LIMIT=512M

# =============================================================================
# Global Settings
# =============================================================================

# Timezone
TZ=UTC

# Global Docker Registry Prefix (optional)
# GLOBAL_REGISTRY=docker.io/
