Files

50 lines
851 B
YAML

Name: gateway
Host: 0.0.0.0
Port: 8888
Log:
Encoding: plain
Mode: console
# 跨域配置
Cors:
Enable: true
AllowOrigins:
- "*"
AllowMethods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
AllowHeaders:
- Content-Type
- Authorization
- X-Requested-With
- X-Client-Id
# system-rpc 连接(用于写入操作日志)
SystemRpc:
Etcd:
Hosts:
- 192.168.100.127:2379
Key: system.rpc
# JWT 密钥
JwtSecret: "9149f2eb-d517-4a50-a03a-231dbcf0d872"
# 鉴权白名单
AuthWhitelist:
- /api/auth/login
- /api/auth/loginByPhone
- /api/auth/miniLogin
- /api/auth/captcha
- /api/plant/callback/wechatpay
# 上游服务路由表(使用 docker-compose 服务名)
Upstreams:
- Prefix: /api/auth
Target: http://auth-api:9001
- Prefix: /api/sys
Target: http://system-api:9003