apiVersion: v1
kind: ConfigMap
metadata:
  name: cuppa-config
  namespace: cuppa
data:
  NODE_ENV: production
  NEXT_PUBLIC_ENABLE_DEMO_LOGIN: "false"
  # 5 connections per web pod × 50 pods = 250 via PgBouncer
  DATABASE_URL: postgresql://postgres:CHANGE_ME@pgbouncer.cuppa.svc:6432/cuppa?schema=public&pgbouncer=true&connection_limit=5
  REDIS_URL: redis://redis.cuppa.svc:6379
  WORKER_DATABASE_URL: postgresql://postgres:CHANGE_ME@postgres.cuppa.svc:5432/cuppa?schema=public
  EMAIL_WORKER_PROCESSES: "2"
  EMAIL_WORKER_CONCURRENCY: "25"
  EMAIL_WORKER_BATCH_SIZE: "50"
  SMTP_POOL_SIZE: "10"
  PG_BOSS_MAX_CONNECTIONS: "30"
  WORKER_HEALTH_PORT: "8081"
