hyapp-server/services/game-service/configs/config.tencent.example.yaml

48 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.

service_name: game-service
node_id: game-prod-1
environment: prod
grpc_addr: ":13008"
health_http_addr: ":13108"
mysql_dsn: "${GAME_MYSQL_DSN}"
wallet_service_addr: "wallet-service:13004"
user_service_addr: "user-service:13005"
activity_service_addr: "10.2.1.16:13006"
robot_service_addr: "10.2.1.16:13011"
launch_session_ttl: "15m"
tencent_im:
# 房内猜拳发起、应战、揭晓和结算事件都走腾讯 IM 房间群自定义消息。
enabled: true
sdk_app_id: 1400000000
secret_key: "TENCENT_IM_SECRET_KEY"
admin_identifier: "TENCENT_IM_ADMIN_IDENTIFIER"
admin_user_sig_ttl: "24h"
endpoint: "adminapisgp.im.qcloud.com"
group_type: "ChatRoom"
request_timeout: "5s"
rocketmq:
enabled: true
name_servers: []
name_server_domain: "${ROCKETMQ_NAME_SERVER_DOMAIN}"
access_key: "${ROCKETMQ_ACCESS_KEY}"
secret_key: "${ROCKETMQ_SECRET_KEY}"
namespace: "${ROCKETMQ_NAMESPACE}"
send_timeout: "3s"
retry: 2
game_outbox:
enabled: true
topic: "hyapp_game_outbox"
producer_group: "hyapp-game-outbox-producer"
outbox_worker:
enabled: true
# 空值自动发现全部 App历史积压回放时先设 ["lalu", "fami"],核对后再加入 "huwaa"。
app_codes: []
poll_interval: "60s"
batch_size: 10
publish_timeout: "3s"
log:
level: info
format: json
include_request_body: false
include_response_body: false
max_payload_bytes: 4096