2026-06-06 13:50:46 +08:00

82 lines
2.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: activity-service
node_id: activity-local
environment: local
log:
level: info
format: json
include_request_body: false
include_response_body: false
max_payload_bytes: 2048
grpc_addr: ":13006"
health_http_addr: ":13106"
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_activity?parseTime=true&charset=utf8mb4&loc=UTC"
user_service_addr: "127.0.0.1:13005"
wallet_service_addr: "127.0.0.1:13004"
room_service_addr: "127.0.0.1:13001"
mysql_auto_migrate: true
first_recharge_reward_worker:
enabled: false
cumulative_recharge_reward_worker:
enabled: false
red_packet_broadcast_worker:
enabled: false
lucky_gift_worker:
enabled: true
worker_poll_interval: "1s"
worker_batch_size: 100
worker_concurrency: 8
worker_lock_ttl: "30s"
worker_max_retry: 8
publish_timeout: "5s"
stats_refresh_interval: "10m"
stats_batch_size: 5000
tencent_im:
# activity-service 只负责全局/区域播报群;必须与 gateway/room-service 使用同一组腾讯 IM 应用配置。
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"
broadcast:
enabled: true
super_gift_min_value: 100000
worker_poll_interval: "1s"
worker_batch_size: 100
worker_lock_ttl: "30s"
worker_max_retry: 8
ensure_groups_on_startup: true
rocketmq:
# 本地默认关闭room-service 直接 gRPC 投递 activity开启后消费 room_outbox MQ fanout。
enabled: false
name_servers: []
name_server_domain: ""
access_key: ""
secret_key: ""
namespace: ""
room_outbox:
enabled: false
topic: "hyapp_room_outbox"
consumer_group: "hyapp-activity-room-outbox"
consumer_max_reconsume_times: 16
wallet_outbox:
enabled: false
topic: "hyapp_wallet_outbox"
realtime_topic: ""
first_recharge_consumer_group: "hyapp-activity-first-recharge-wallet-outbox"
cumulative_recharge_consumer_group: "hyapp-activity-cumulative-recharge-wallet-outbox"
red_packet_broadcast_consumer_group: "hyapp-activity-red-packet-wallet-outbox"
consumer_max_reconsume_times: 16
user_outbox:
enabled: false
topic: "hyapp_user_outbox"
consumer_group: "hyapp-activity-user-region-broadcast"
consumer_max_reconsume_times: 16
consumer:
room_outbox_poll_interval_ms: 1000
batch_size: 100
message_inbox:
unread_cache_ttl: "60s"