59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
service_name: room-service
|
||
environment: prod
|
||
node_id: "room-node-prod-1"
|
||
log:
|
||
level: info
|
||
format: json
|
||
include_request_body: false
|
||
include_response_body: false
|
||
max_payload_bytes: 2048
|
||
grpc_addr: ":13001"
|
||
advertise_addr: "ROOM_NODE_PRIVATE_IP_OR_DNS:13001"
|
||
health_http_addr: ":13101"
|
||
node_registry_ttl: "30s"
|
||
node_registry_heartbeat_interval: "10s"
|
||
owner_forward_timeout: "2s"
|
||
lease_ttl: "10s"
|
||
rank_limit: 20
|
||
snapshot_every_n: 10
|
||
wallet_service_addr: "wallet-service.internal:13004"
|
||
activity_service_addr: "activity-service.internal:13006"
|
||
tencent_im:
|
||
# 线上开启后,腾讯云 IM 建群和房间系统消息都由 room_outbox worker 异步投递。
|
||
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"
|
||
# outbox worker 单次公网调用超时。
|
||
request_timeout: "5s"
|
||
mysql_dsn: "USER:PASSWORD@tcp(TENCENT_CDB_HOST:3306)/hyapp_room?parseTime=true&charset=utf8mb4&loc=UTC&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/activity-service 抖动时不回滚 Room Cell 状态。
|
||
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"
|