1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- spring:
- redis:
- host: 192.168.60.221
- port: 6379
- password:
- cloud:
- gateway:
- discovery:
- locator:
- lowerCaseServiceId: true
- enabled: true
- routes:
- # 认证中心
- - id: siwei-auth
- uri: lb://siwei-auth
- predicates:
- - Path=/auth/**
- filters:
- # 验证码处理
- - CacheRequestFilter
- - ValidateCodeFilter
- - StripPrefix=1
- # 定时任务
- - id: siwei-job
- uri: lb://siwei-job
- predicates:
- - Path=/schedule/**
- filters:
- - StripPrefix=1
- # 系统模块
- - id: siwei-system
- uri: lb://siwei-system
- predicates:
- - Path=/system/**
- filters:
- - StripPrefix=1
- # 文件服务
- - id: siwei-file
- uri: lb://siwei-file
- predicates:
- - Path=/file/**
- filters:
- - StripPrefix=1
- # 代码生成服务
- - id: siwei-gen
- uri: lb://siwei-gen
- predicates:
- - Path=/code/**
- filters:
- - StripPrefix=1
- # 核查服务
- - id: siwei-rsmonitoring
- uri: lb://siwei-rsmonitoring
- predicates:
- - Path=/rsmonitoring/**
- filters:
- - StripPrefix=1
- # 空间服务
- - id: siwei-spatial
- uri: lb://siwei-spatial
- predicates:
- - Path=/spatial/**
- 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
- - /*/v3/api-docs
- - /csrf
- # springdoc配置
- springdoc:
- webjars:
- # 访问前缀
- prefix:
|