style: 替换项目内所有ruoyi转为wfc
This commit is contained in:
77
wfc-gateway/src/main/resources/application.yml
Normal file
77
wfc-gateway/src/main/resources/application.yml
Normal file
@@ -0,0 +1,77 @@
|
||||
spring:
|
||||
redis:
|
||||
host: 192.168.9.58
|
||||
port: 16379
|
||||
password: helloearth
|
||||
cloud:
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
lowerCaseServiceId: true
|
||||
enabled: true
|
||||
routes:
|
||||
# 认证中心
|
||||
- id: wfc-auth
|
||||
uri: lb://wfc-auth
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
# 验证码处理
|
||||
- CacheRequestFilter
|
||||
- ValidateCodeFilter
|
||||
- StripPrefix=1
|
||||
# 代码生成
|
||||
- id: wfc-gen
|
||||
uri: lb://wfc-gen
|
||||
predicates:
|
||||
- Path=/code/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 定时任务
|
||||
- id: wfc-job
|
||||
uri: lb://wfc-job
|
||||
predicates:
|
||||
- Path=/schedule/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 系统模块
|
||||
- id: wfc-system
|
||||
uri: lb://wfc-system
|
||||
predicates:
|
||||
- Path=/system/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 文件服务
|
||||
- id: wfc-file
|
||||
uri: lb://wfc-file
|
||||
predicates:
|
||||
- Path=/file/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 用户平台模块
|
||||
- id: wfc-modules-user
|
||||
uri: lb://wfc-modules-user
|
||||
predicates:
|
||||
- Path=/u/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
# 安全配置
|
||||
security:
|
||||
# 验证码
|
||||
captcha:
|
||||
enabled: true
|
||||
type: math
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
enabled: true
|
||||
excludeUrls:
|
||||
- /system/notice
|
||||
# 不校验白名单
|
||||
ignore:
|
||||
whites:
|
||||
- /auth/logout
|
||||
- /auth/login
|
||||
- /auth/register
|
||||
- /*/v2/api-docs
|
||||
- /csrf
|
||||
Reference in New Issue
Block a user