feat: rbac迁移完成,并已部署至dev服务器

This commit is contained in:
Blizzard
2026-05-01 01:19:50 +08:00
parent f80a3dc064
commit 8b11068fef
250 changed files with 6314 additions and 13072 deletions
+49
View File
@@ -0,0 +1,49 @@
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