# CI-specific configuration for backend tests. Mirrors production schema with safe defaults.
server:
  name: mvp-backend-ci
  port: 3001
  environment: test
  node_env: test

database:
  host: mvp-postgres
  port: 5432
  name: motovaultpro
  user: postgres

redis:
  host: mvp-redis
  port: 6379
  db: 0

platform:
  services:
    vehicles:
      url: http://mvp-platform-vehicles-api:8000
      timeout: 5s

external:
  vpic:
    url: https://vpic.nhtsa.dot.gov/api/vehicles
    timeout: 10s

service:
  name: mvp-backend

cors:
  origins:
    - http://localhost
  allow_credentials: false
  max_age: 0

frontend:
  api_base_url: /api
  auth0:
    domain: motovaultpro.us.auth0.com
    audience: https://api.motovaultpro.com

health:
  endpoints:
    basic: /health
    ready: /health/ready
    live: /health/live
    startup: /health/startup
  probes:
    startup:
      initial_delay: 1s
      period: 1s
      timeout: 1s
      failure_threshold: 3
    readiness:
      period: 1s
      timeout: 1s
      failure_threshold: 3
    liveness:
      period: 1s
      timeout: 1s
      failure_threshold: 3

logging:
  level: debug
  format: json
  destinations:
    - console

performance:
  request_timeout: 30s
  max_request_size: 25MB
  compression_enabled: false
  circuit_breaker:
    enabled: false
    failure_threshold: 5
    timeout: 5s
