feat: rbac迁移完成,并已部署至dev服务器
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
Name: auth-api
|
||||
|
||||
Log:
|
||||
Encoding: plain
|
||||
Host: 0.0.0.0
|
||||
Port: 9001
|
||||
|
||||
Auth:
|
||||
AccessSecret: 9149f2eb-d517-4a50-a03a-231dbcf0d872
|
||||
AccessExpire: 7200
|
||||
|
||||
# system-rpc
|
||||
SystemRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 192.168.100.127:2379
|
||||
Key: system.rpc
|
||||
|
||||
# Redis(验证码存储,DB2)
|
||||
Redis:
|
||||
Host: 192.168.100.127:6379
|
||||
Pass: sundynix
|
||||
DB: 2
|
||||
@@ -0,0 +1,61 @@
|
||||
version: "3.8"
|
||||
|
||||
# Sundynix Dev 环境
|
||||
# 部署到 192.168.100.128
|
||||
# 镜像从 Harbor 192.168.100.140 拉取
|
||||
|
||||
services:
|
||||
system-rpc:
|
||||
image: sundynix/system-rpc:latest
|
||||
container_name: system-rpc
|
||||
restart: always
|
||||
ports:
|
||||
- "9103:9103"
|
||||
volumes:
|
||||
- ./config/system-rpc.yaml:/app/etc/config.yaml
|
||||
networks:
|
||||
- sundynix
|
||||
|
||||
auth-api:
|
||||
image: sundynix/auth-api:latest
|
||||
container_name: auth-api
|
||||
restart: always
|
||||
ports:
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- ./config/auth-api.yaml:/app/etc/config.yaml
|
||||
depends_on:
|
||||
- system-rpc
|
||||
networks:
|
||||
- sundynix
|
||||
|
||||
system-api:
|
||||
image: sundynix/system-api:latest
|
||||
container_name: system-api
|
||||
restart: always
|
||||
ports:
|
||||
- "9003:9003"
|
||||
volumes:
|
||||
- ./config/system-api.yaml:/app/etc/config.yaml
|
||||
depends_on:
|
||||
- system-rpc
|
||||
networks:
|
||||
- sundynix
|
||||
|
||||
gateway:
|
||||
image: sundynix/gateway:latest
|
||||
container_name: gateway
|
||||
restart: always
|
||||
ports:
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
- ./config/gateway.yaml:/app/etc/config.yaml
|
||||
depends_on:
|
||||
- auth-api
|
||||
- system-api
|
||||
networks:
|
||||
- sundynix
|
||||
|
||||
networks:
|
||||
sundynix:
|
||||
driver: bridge
|
||||
@@ -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
|
||||
@@ -0,0 +1,16 @@
|
||||
Name: system-api
|
||||
|
||||
Log:
|
||||
Encoding: plain
|
||||
Host: 0.0.0.0
|
||||
Port: 9003
|
||||
|
||||
Auth:
|
||||
AccessSecret: 9149f2eb-d517-4a50-a03a-231dbcf0d872
|
||||
AccessExpire: 604800
|
||||
|
||||
SystemRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 192.168.100.127:2379
|
||||
Key: system.rpc
|
||||
@@ -0,0 +1,13 @@
|
||||
Name: system.rpc
|
||||
|
||||
Log:
|
||||
Encoding: plain
|
||||
ListenOn: 0.0.0.0:9103
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 192.168.100.127:2379
|
||||
Key: system.rpc
|
||||
|
||||
# MySQL
|
||||
DB:
|
||||
DataSource: root:root@tcp(192.168.100.127:3307)/sundynix_micro_go?charset=utf8mb4&parseTime=True&loc=Local
|
||||
Reference in New Issue
Block a user