Files
full/module/finance/wallet/etc/wallet_test.yaml

62 lines
1.2 KiB
YAML
Raw Permalink Normal View History

Name: {ServiceKey}
ListenOn: 0.0.0.0:12238
2026-08-10 11:42:45 +08:00
Dsn: postgres://postgres:CHANGE_ME@127.0.0.1:5432/{Workspace}_test?sslmode=disable&TimeZone=Asia/Shanghai
# cache DB的选择请在后面直接带参数不带会自动HASH计算选择DB库。
# DB库设置例redis://null:Weidong1214@127.0.0.1:6379/12代表DB12
2026-08-10 11:42:45 +08:00
Cache: redis://null:CHANGE_ME@127.0.0.1:6379/
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.{ServiceKey}.rpc
# 服务调用
Notify:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.notify.rpc
Material:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: service.{Workspace}.material.rpc
# 匿名访问清单,自动注入网关层
Anonymous:
Key: anonymous.{Workspace}
Urls:
- wallet.wechat.WxCallback
- wallet.payment.Callback
# 日志记录
Log:
ServiceName: {ServiceKey}
Mode: file
Path: logs/{ServiceKey}
Stat: false
# 性能监控
Prometheus:
Host: 127.0.0.1
Port: 22238
Path: /metrics
# 链路追踪
Telemetry:
Name: {Workspace}.{ServiceKey}.{RuntimeMode}
Endpoint: http://192.168.0.85:14268/api/traces
Sampler: 1.0
Batcher: jaeger
# MQ Pulsar
#Pulsar:
# Endpoints: 127.0.0.1
# Token: 9091
# Namespaces: {Workspace}