代码拉取完成,页面将自动刷新
spring:
cloud:
gateway:
locator:
enabled: true
routes:
# 认证中心
- id: scf-auth
uri: lb://scf-auth
predicates:
- Path=/auth/**
filters:
# 验证码处理
- ImageCodeGatewayFilter
# 前端密码解密
- PasswordDecoderFilter
- StripPrefix=1
#UPMS 模块
- id: scf-upms
uri: lb://scf-upms
predicates:
- Path=/admin/**
filters:
# Swagger请求头处理
- SwaggerHeaderFilter
# 请求头清理避免不合法请求头
- name: RemoveRequestHeader
args:
name: from
# 限流配置
- name: RequestRateLimiter
args:
key-resolver: '#{@remoteAddrKeyResolver}'
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
- StripPrefix=1
# 降级配置
- name: Hystrix
args:
name: default
fallbackUri: 'forward:/fallback'
# 定时任务模块
- id: scf-daemon
uri: lb://scf-daemon
predicates:
- Path=/daemon/**
filters:
- StripPrefix=1
# demo
- id: scf-demo
uri: lb://scf-demo
predicates:
- Path=/demo/**
filters:
- StripPrefix=1
security:
encode:
# 前端密码密钥,必须16位
key: 'scfscfscfscfscf1'
# 不校验验证码终端
ignore:
clients:
- test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。