service_name: activity-service
node_id: activity-tencent
environment: prod
log:
  level: info
  format: json
  include_request_body: false
  include_response_body: false
  max_payload_bytes: 2048
grpc_addr: ":13006"
health_http_addr: ":13106"
mysql_dsn: "USER:PASSWORD@tcp(TENCENT_CDB_HOST:3306)/hyapp_activity?parseTime=true&charset=utf8mb4&loc=UTC&tls=false"
user_service_addr: "user-service.internal:13005"
wallet_service_addr: "wallet-service.internal:13004"
mysql_auto_migrate: false
tencent_im:
  # 腾讯云 IM 应用配置；必须和 gateway 的 UserSig、room-service 房间群配置属于同一个 SDKAppID。
  enabled: true
  sdk_app_id: 1400000000
  secret_key: "TENCENT_IM_SECRET_KEY"
  admin_identifier: "TENCENT_IM_ADMIN_IDENTIFIER"
  admin_user_sig_ttl: "24h"
  endpoint: "adminapisgp.im.qcloud.com"
  group_type: "ChatRoom"
  request_timeout: "5s"
broadcast:
  enabled: true
  super_gift_min_value: 100000
  worker_poll_interval: "1s"
  worker_batch_size: 100
  worker_lock_ttl: "30s"
  worker_max_retry: 8
  ensure_groups_on_startup: true
consumer:
  room_outbox_poll_interval_ms: 1000
  batch_size: 100
message_inbox:
  unread_cache_ttl: "60s"
