# Gateway Configuration

# Server configuration
server:
  port: 3000
  host: 0.0.0.0
  log_level: info
  cors_origin: "*"
  base_url: http://localhost:3000
  trusted_origins:
    - http://localhost:3000
    - http://localhost:5173
    - http://localhost:8080

# Database
database:
  url: postgresql://postgres:postgres@localhost:5432/dexorder

# Default model (if user has no preference)
defaults:
  model_provider: anthropic
  model: claude-sonnet-4-6

# License tier model configuration
license_models:
  # Free tier models
  free:
    default: claude-haiku-4-5-20251001
    cost_optimized: claude-haiku-4-5-20251001
    complex: claude-haiku-4-5-20251001
    allowed_models:
      - claude-haiku-4-5-20251001

  # Pro tier models
  pro:
    default: claude-sonnet-4-6
    cost_optimized: claude-haiku-4-5-20251001
    complex: claude-sonnet-4-6
    blocked_models:
      - claude-opus-4-6

  # Enterprise tier models
  enterprise:
    default: claude-sonnet-4-6
    cost_optimized: claude-haiku-4-5-20251001
    complex: claude-opus-4-6

# Kubernetes configuration
kubernetes:
  namespace: sandbox
  in_cluster: false
  context: minikube
  sandbox_image: ghcr.io/dexorder/sandbox:latest
  sidecar_image: ghcr.io/dexorder/lifecycle-sidecar:latest
  storage_class: standard

# DragonflyDB (Redis-compatible, for hot storage and session management)
redis:
  url: redis://localhost:6379

# Qdrant (for RAG vector search)
qdrant:
  url: http://localhost:6333
  collection: gateway_memory

# Iceberg (for durable storage via REST catalog)
iceberg:
  catalog_uri: http://iceberg-catalog:8181
  namespace: gateway
  # Future: Separate OHLC database
  # ohlc_catalog_uri: http://iceberg-catalog-trading:8181
  # ohlc_namespace: trading
  s3_endpoint: http://minio:9000

# ZMQ Relay configuration for historical data
relay:
  request_endpoint: tcp://relay:5559
  notification_endpoint: tcp://relay:5558

# Event router (ZeroMQ)
events:
  router_bind: tcp://*:5571

# Embeddings (for RAG vector search)
# Recommended: ollama with all-minilm (90MB model, CPU-friendly, ~100MB RAM)
embedding:
  provider: ollama
  model: all-minilm
  ollama_url: http://localhost:11434

# Email service configuration
email:
  from_address: noreply@dexorder.com
