muyu-apiserver/gateway/etc/gateway-api.yaml
Chever John a5b1b406ea security: remove hardcoded credentials and add envsubst for go-zero configs
- Clear default passwords in all service configs and local dev YAMLs
- Add entrypoint.sh with envsubst to resolve ${ENV} vars in go-zero YAML
- Update Dockerfiles to install gettext and use entrypoint
- Update docker-compose to pass secrets via environment and require via ${VAR:?...}
- Add .gitignore rules for .env files, add .env.example template

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 23:16:28 +08:00

39 lines
766 B
YAML

# 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