50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
Name: {ServiceKey}
|
||
ListenOn: 0.0.0.0:12264
|
||
|
||
Dsn: postgres://postgres:CHANGE_ME@infra.test:5432/{Workspace}_test?sslmode=disable&TimeZone=Asia/Shanghai
|
||
|
||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||
Cache: redis://null:CHANGE_ME@infra.test:6379/
|
||
|
||
Etcd:
|
||
Hosts:
|
||
- infra.test:2379
|
||
Key: service.{Workspace}.{ServiceKey}.rpc
|
||
|
||
|
||
|
||
# 匿名访问清单,自动注入网关层
|
||
# Anonymous:
|
||
# Key: anonymous.{Workspace}
|
||
# Urls:
|
||
# - order.Check.Hello
|
||
|
||
# 支付有效期时间
|
||
PayExpireTime: '30'
|
||
|
||
# 日志记录
|
||
Log:
|
||
ServiceName: {ServiceKey}
|
||
Mode: file
|
||
Path: logs/{ServiceKey}
|
||
Stat: false
|
||
|
||
# 性能监控, 注释将不启用此功能
|
||
#Prometheus:
|
||
# Host: 127.0.0.1
|
||
# Port: 22202
|
||
# Path: /metrics
|
||
|
||
# 链路追踪, 注释将不启用此功能
|
||
#Telemetry:
|
||
# Name: {Workspace}.{ServiceKey}.{RuntimeMode}
|
||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||
# Sampler: 1.0
|
||
# Batcher: jaeger
|
||
|
||
# MQ Pulsar, 注释将不启用此功能
|
||
#Pulsar:
|
||
# Endpoints: 127.0.0.1
|
||
# Token: 9091
|
||
# Namespaces: {Workspace}
|