79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
service_name: notice-service
|
||
node_id: notice-local
|
||
environment: local
|
||
grpc_addr: ":13009"
|
||
health_http_addr: ":13109"
|
||
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_notice?parseTime=true&charset=utf8mb4&loc=UTC"
|
||
wallet_database: "hyapp_wallet"
|
||
room_database: "hyapp_room"
|
||
mysql_auto_migrate: false
|
||
|
||
tencent_im:
|
||
enabled: true
|
||
sdk_app_id: 20036101
|
||
secret_key: "dcdf53135f27e7cf8541c4ae9798fb0cb2f0e4d6c5c20022dbaea053f35cbb8c"
|
||
admin_identifier: "900100100"
|
||
admin_user_sig_ttl: 24h
|
||
endpoint: "adminapisgp.im.qcloud.com"
|
||
request_timeout: 5s
|
||
group_id_prefix: ""
|
||
|
||
wallet_notice_worker:
|
||
enabled: false
|
||
poll_interval: 1s
|
||
batch_size: 100
|
||
lock_ttl: 30s
|
||
publish_timeout: 3s
|
||
max_retry_count: 10
|
||
initial_backoff: 5s
|
||
max_backoff: 5m
|
||
|
||
room_notice_worker:
|
||
enabled: false
|
||
poll_interval: 1s
|
||
batch_size: 100
|
||
lock_ttl: 30s
|
||
publish_timeout: 3s
|
||
max_retry_count: 10
|
||
initial_backoff: 5s
|
||
max_backoff: 5m
|
||
|
||
cp_notice_worker:
|
||
enabled: false
|
||
poll_interval: 1s
|
||
batch_size: 100
|
||
lock_ttl: 30s
|
||
publish_timeout: 3s
|
||
max_retry_count: 10
|
||
initial_backoff: 5s
|
||
max_backoff: 5m
|
||
|
||
rocketmq:
|
||
# notice 只消费 owner outbox MQ fanout,仍写 notice_delivery_events 做幂等。
|
||
enabled: true
|
||
name_servers: ["127.0.0.1:19876"]
|
||
name_server_domain: ""
|
||
access_key: ""
|
||
secret_key: ""
|
||
namespace: ""
|
||
wallet_outbox:
|
||
enabled: true
|
||
topic: "hyapp_wallet_outbox"
|
||
consumer_group: "hyapp-notice-wallet-outbox"
|
||
consumer_max_reconsume_times: 16
|
||
room_outbox:
|
||
enabled: true
|
||
topic: "hyapp_room_outbox"
|
||
consumer_group: "hyapp-notice-room-outbox"
|
||
consumer_max_reconsume_times: 16
|
||
user_outbox:
|
||
enabled: true
|
||
topic: "hyapp_user_outbox"
|
||
consumer_group: "hyapp-notice-cp-user-outbox"
|
||
consumer_max_reconsume_times: 16
|
||
|
||
log:
|
||
level: info
|
||
format: json
|
||
max_payload_bytes: 2048
|