Name: chat-api
Host: 0.0.0.0
Port: 8888

Hybrid:
  Name: chat-hybrid
  Protocol: auto
  Ws:
    Name: chat-ws
    Addr: :8888
    Path: /ws/chat
    MaxConnections: 10000
    Auth:
      Enabled: true
      Source: envoy-header
      HeaderName: x-auth-user-id
  Wt:
    Addr: :8443
    Path: /wt/chat
    CertFile: "${CHAT_WT_CERT_FILE}"
    KeyFile: "${CHAT_WT_KEY_FILE}"
    Auth:
      Enabled: true
  FallbackStrategy: auto
  MaxRetries: 3
  MaxConnections: 10000
  Auth:
    Enabled: true
    WsHeaderName: x-auth-user-id
    WtTokenSource: cookie
    WtTokenName: JToken
    WtJWTSecret: "${JWT_SECRET_KEY}"

Stateless:
  PollInterval: 100ms
  BatchSize: 100

Mongo:
  URI: "${MONGO_URI}"
  Database: "${MONGO_DATABASE}"

Redis:
  Addr: "${REDIS_HOST}:${REDIS_PORT}"

Log:
  Level: info
