muyu-apiserver/gateway/etc/gateway-api.yaml

39 lines
766 B
YAML
Raw Normal View History

# Local development config — fill in credentials before running locally.
Name: gateway-api
Host: 0.0.0.0
Port: 8888
Auth:
AccessSecret: your_jwt_secret_here
AccessExpire: 7200
DefaultTenantId: t_default_001
DataSource: root:your_password@tcp(127.0.0.1:3306)/muyu_wms?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
PostgresDataSource: "postgres://muyu:your_password@127.0.0.1:5432/muyu_crm?sslmode=disable"
SystemRpc:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: system.rpc
NonBlock: true
InventoryRpc:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: inventory.rpc
NonBlock: true
PurchaseRpc:
Etcd:
Hosts:
- 127.0.0.1:2379
Key: purchase.rpc
NonBlock: true
Log:
ServiceName: gateway-api
Mode: console
Level: info