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 grpc_addr: ":13001" advertise_addr: "room-service: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:13004" activity_service_addr: "activity-service:13006" tencent_im: # Docker 本地联调腾讯云 IM REST 桥接;必须与 gateway-service 使用同一组应用配置。 enabled: true sdk_app_id: 20036101 secret_key: "dcdf53135f27e7cf8541c4ae9798fb0cb2f0e4d6c5c20022dbaea053f35cbb8c" admin_identifier: "900100100" admin_user_sig_ttl: "24h" endpoint: "adminapisgp.im.qcloud.com" group_type: "ChatRoom" request_timeout: "5s" tencent_rtc: # Docker 本地默认关闭真实 TRTC 管理 API;开启后封禁会同步调用 RemoveUserByStrRoomId。 enabled: false sdk_app_id: 0 secret_id: "" secret_key: "" region: "ap-guangzhou" endpoint: "trtc.tencentcloudapi.com" request_timeout: "5s" mysql_dsn: "hyapp:hyapp@tcp(mysql:3306)/hyapp_room?parseTime=true&charset=utf8mb4&loc=UTC" mysql_max_open_conns: 20 mysql_max_idle_conns: 10 mysql_auto_migrate: true redis_addr: "redis:6379" 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: # Docker 本地默认启动补偿 worker,验证 IM/activity 异步投递、退避和死信闭环。 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"