2026-05-16 08:12:42 +08:00

64 lines
2.1 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.

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"
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"
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"
# 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"
outbox_worker:
# room_outbox 是腾讯云 IM 和 activity-service 的异步投递通道;失败退避重试,超过上限转死信。
enabled: true
poll_interval: "1s"
batch_size: 100
publish_timeout: "3s"
retry_strategy: "exponential_backoff"
max_retry_count: 10
initial_backoff: "5s"
max_backoff: "5m"