service_name: room-service
environment: local
node_id: "room-node-1"
log:
  level: info
  format: json
  include_request_body: false
  include_response_body: false
  max_payload_bytes: 2048
lease_ttl: "10s"
lucky_gift_send_lock_ttl: "5s"
rank_limit: 20
snapshot_every_n: 10
grpc_addr: ":13001"
advertise_addr: "127.0.0.1:13001"
health_http_addr: ":13101"
node_registry_ttl: "30s"
node_registry_heartbeat_interval: "10s"
owner_forward_timeout: "2s"
wallet_service_addr: "127.0.0.1:13004"
activity_service_addr: "127.0.0.1:13006"
robot_service_addr: "127.0.0.1:13011"
user_service_addr: "127.0.0.1:13005"
tencent_im:
  # 本地联调腾讯云 IM REST 桥接；SDKAppID、密钥和管理员账号必须来自同一个应用。
  enabled: true
  sdk_app_id: 20040101
  secret_key: "2f6a5ec58cccf79647557a96c15e6efe89ba5a44c474096bde2589a633fcd45e"
  admin_identifier: "administrator"
  admin_user_sig_ttl: "24h"
  # REST API 区域域名必须匹配腾讯云 IM 应用的数据存储区域。
  endpoint: "adminapisgp.im.qcloud.com"
  # 语音房群类型。ChatRoom 保留基础群历史；如改 AVChatRoom，要重新评估历史能力。
  group_type: "ChatRoom"
  # outbox worker 建群和发送房间系统消息的单次 REST 超时。
  request_timeout: "5s"
tencent_rtc:
  # 本地联调真实 TRTC 管理 API；关闭房间会同步调用 RemoveUserByStrRoomId。
  enabled: true
  sdk_app_id: 20036101
  secret_id: "IKIDMchhZEfrsiNo472DAtTpzzmLjttkOnyu"
  secret_key: "nMkbLsGRO6ZqulSyJQJ0UjjU0KSKxOgl"
  region: "ap-guangzhou"
  endpoint: "trtc.tencentcloudapi.com"
  request_timeout: "5s"
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_room?parseTime=true&charset=utf8mb4&loc=UTC"
mysql_max_open_conns: 20
mysql_max_idle_conns: 10
mysql_auto_migrate: true
redis_addr: "127.0.0.1:13379"
redis_password: ""
redis_db: 0
presence_stale_after: "2m"
presence_stale_scan_interval: "30s"
mic_publish_timeout: "15s"
mic_publish_scan_interval: "1s"
room_rocket_launch_scan_interval: "1s"
room_list_cache_refresh_interval: "5m"
rocketmq:
  # 本地默认走 RocketMQ fanout，和 Docker/testbox/线上保持同一条 outbox 链路。
  enabled: true
  name_servers: ["127.0.0.1:19876"]
  name_server_domain: ""
  access_key: ""
  secret_key: ""
  namespace: ""
  send_timeout: "3s"
  retry: 2
  room_outbox:
    enabled: true
    topic: "hyapp_room_outbox"
    producer_group: "hyapp-room-outbox-producer"
  rocket_launch:
    enabled: true
    topic: "hyapp_room_rocket_launch"
    producer_group: "hyapp-room-rocket-launch-producer"
    consumer_group: "hyapp-room-rocket-launch"
    consumer_max_reconsume_times: 16
  user_outbox:
    enabled: true
    topic: "hyapp_user_outbox"
    consumer_group: "hyapp-room-user-region-sync"
    consumer_max_reconsume_times: 16
outbox_worker:
  # room_outbox 是腾讯云 IM 和 activity-service 的异步投递通道；本地也走 MQ，避免和测试/线上链路漂移。
  enabled: true
  publish_mode: "mq"
  poll_interval: "200ms"
  batch_size: 50
  concurrency: 16
  publish_timeout: "15s"
  retry_strategy: "exponential_backoff"
  max_retry_count: 10
  initial_backoff: "5s"
  max_backoff: "5m"
