YumiNail后端和网关初始化

This commit is contained in:
xiaowang
2026-02-13 10:23:17 +08:00
parent a41985582b
commit 7a6cab8a51
26 changed files with 1249 additions and 100 deletions
@@ -0,0 +1,32 @@
server:
port: 8888
spring:
profiles:
active: dev
cloud:
gateway:
discovery:
locator:
enabled: true # 开启从注册中心动态创建路由的功能
lower-case-service-id: true # 使用小写服务名
routes:
- id: yuminail-core-route
uri: lb://yuminail-core
predicates:
- Path=/core/**
filters:
- StripPrefix=1
# 自定义配置:白名单
yuminail:
gateway:
whitelist:
- /auth/login
- /auth/register
- /health/check
- /doc.html
- /webjars/**
- /v2/api-docs/**
- /swagger-resources/**
@@ -0,0 +1,24 @@
spring:
application:
name: yuminail-gateway
cloud:
nacos:
discovery:
server-addr: 192.168.5.101:8848,192.168.5.102:8848,192.168.5.103:8848
namespace: YumiNail
group: DEFAULT_GROUP
service: ${spring.application.name}
config:
server-addr: 192.168.5.101:8848,192.168.5.102:8848,192.168.5.103:8848
namespace: YumiNail
group: DEFAULT_GROUP
name: yuminail-gateway.yaml
file-extension: yaml
shared-configs:
- data-id: redis.yaml
group: DEFAULT_GROUP
refresh: true
- data-id: logging.yaml
group: DEFAULT_GROUP
refresh: true