2026-04-29 23:07:50 +08:00

38 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

node_id: "room-node-1"
lease_ttl: "10s"
rank_limit: 20
snapshot_every_n: 1
grpc_addr: ":13001"
wallet_service_addr: "127.0.0.1:13004"
tencent_im:
# 本地联调腾讯云 IM REST 桥接SDKAppID、密钥和管理员账号必须来自同一个应用。
enabled: true
sdk_app_id: 20036101
secret_key: "dcdf53135f27e7cf8541c4ae9798fb0cb2f0e4d6c5c20022dbaea053f35cbb8c"
admin_identifier: "900100100"
admin_user_sig_ttl: "24h"
# REST API 区域域名必须匹配腾讯云 IM 应用的数据存储区域。
endpoint: "adminapisgp.im.qcloud.com"
# 语音房群类型。ChatRoom 保留基础群历史;如改 AVChatRoom要重新评估历史能力。
group_type: "ChatRoom"
# room-service 同步建群和发送房间系统消息的单次 REST 超时。
request_timeout: "5s"
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_room?parseTime=true&charset=utf8mb4&loc=Local"
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"
outbox_worker:
# room_outbox 是腾讯云 IM 系统消息补偿通道;失败保持 pending 并固定间隔重试。
enabled: true
poll_interval: "1s"
batch_size: 100
publish_timeout: "3s"
retry_strategy: "fixed_interval"