76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
service_name: wallet-service
|
|
node_id: wallet-tencent
|
|
environment: prod
|
|
log:
|
|
level: info
|
|
format: json
|
|
include_request_body: false
|
|
include_response_body: false
|
|
max_payload_bytes: 2048
|
|
grpc_addr: ":13004"
|
|
health_http_addr: ":13104"
|
|
mysql_dsn: "USER:PASSWORD@tcp(TENCENT_CDB_HOST:3306)/hyapp_wallet?parseTime=true&charset=utf8mb4&loc=UTC&tls=false"
|
|
activity_service_addr: "ACTIVITY_SERVICE_HOST:13006"
|
|
mysql_auto_migrate: false
|
|
red_packet_expiry_worker:
|
|
enabled: true
|
|
app_code: "lalu"
|
|
poll_interval: "5s"
|
|
batch_size: 50
|
|
projection_worker:
|
|
enabled: true
|
|
poll_interval: "60s"
|
|
batch_size: 10
|
|
lock_ttl: "30s"
|
|
consumer_group: "hyapp-wallet-projection"
|
|
consumer_max_reconsume_times: 16
|
|
rocketmq:
|
|
enabled: true
|
|
name_servers:
|
|
- "TENCENT_ROCKETMQ_NAMESERVER:9876"
|
|
name_server_domain: ""
|
|
access_key: "TENCENT_ROCKETMQ_ACCESS_KEY"
|
|
secret_key: "TENCENT_ROCKETMQ_SECRET_KEY"
|
|
namespace: "hyapp-prod"
|
|
send_timeout: "3s"
|
|
retry: 2
|
|
wallet_outbox:
|
|
enabled: true
|
|
topic: "hyapp_wallet_outbox"
|
|
producer_group: "hyapp-wallet-outbox-producer"
|
|
realtime_outbox:
|
|
enabled: true
|
|
topic: "hyapp_wallet_realtime_outbox"
|
|
producer_group: "hyapp-wallet-realtime-outbox-producer"
|
|
google_play:
|
|
enabled: false
|
|
package_name: "com.example.hyapp"
|
|
service_account_file: "/etc/hyapp/secrets/google-play-service-account.json"
|
|
service_account_json: ""
|
|
api_base_url: "https://androidpublisher.googleapis.com"
|
|
token_url: "https://oauth2.googleapis.com/token"
|
|
http_timeout: "10s"
|
|
consume_enabled: true
|
|
outbox_worker:
|
|
enabled: true
|
|
poll_interval: "1s"
|
|
batch_size: 200
|
|
concurrency: 8
|
|
publish_timeout: "3s"
|
|
max_retry_count: 10
|
|
initial_backoff: "5s"
|
|
max_backoff: "5m"
|
|
realtime_outbox_worker:
|
|
enabled: true
|
|
poll_interval: "500ms"
|
|
batch_size: 50
|
|
concurrency: 4
|
|
publish_timeout: "3s"
|
|
max_retry_count: 10
|
|
initial_backoff: "2s"
|
|
max_backoff: "1m"
|
|
event_types:
|
|
- "WalletRedPacketCreated"
|
|
- "WalletRedPacketClaimed"
|
|
- "WalletRedPacketRefunded"
|