hyapp-server/services/room-service/configs/config.tencent.example.yaml
2026-04-29 23:07:50 +08:00

42 lines
1.6 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-prod-1"
grpc_addr: ":13001"
lease_ttl: "10s"
rank_limit: 20
snapshot_every_n: 1
wallet_service_addr: "wallet-service.internal:13004"
tencent_im:
# 线上开启后CreateRoom 会先确保腾讯云 IM 群组存在。
enabled: true
# 腾讯云 IM 应用 ID必须和 gateway-service 使用同一个 SDKAppID。
sdk_app_id: 1400000000
# 腾讯云 IM SDKSecretKey只允许写在线上密钥系统或私有配置中。
secret_key: "TENCENT_IM_SECRET_KEY"
# 腾讯云 IM App 管理员账号,用于服务端 REST API。
admin_identifier: "administrator"
# 管理员 REST API UserSig 有效期。
admin_user_sig_ttl: "24h"
# REST API 区域域名;这里用新加坡示例,实际按腾讯云 IM 应用区域填写。
endpoint: "adminapisgp.im.qcloud.com"
# 语音房默认用 ChatRoom 保留基础群历史;改 AVChatRoom 前要确认历史和人数语义。
group_type: "ChatRoom"
# 同步建群/发房间系统消息的单次公网调用超时。
request_timeout: "5s"
mysql_dsn: "USER:PASSWORD@tcp(TENCENT_CDB_HOST:3306)/hyapp_room?parseTime=true&charset=utf8mb4&loc=Local&tls=false"
mysql_max_open_conns: 80
mysql_max_idle_conns: 20
mysql_auto_migrate: false
redis_addr: "TENCENT_REDIS_HOST:6379"
redis_password: "TENCENT_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:
# 线上默认启动补偿 worker腾讯云 IM 抖动时不回滚 Room Cell 状态。
enabled: true
poll_interval: "1s"
batch_size: 100
publish_timeout: "3s"
retry_strategy: "fixed_interval"