123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- spring:
- redis:
- host: 10.16.4.12
- port: 6379
- password:
- cloud:
- gateway:
- discovery:
- locator:
- lowerCaseServiceId: true
- enabled: true
- routes:
- # 认证中心
- - id: ruoyi-auth
- uri: lb://ruoyi-auth
- predicates:
- - Path=/auth/**
- filters:
- # 验证码处理
- - CacheRequestFilter
- - ValidateCodeFilter
- - StripPrefix=1
- # 代码生成
- - id: ruoyi-gen
- uri: lb://ruoyi-gen
- predicates:
- - Path=/code/**
- filters:
- - StripPrefix=1
- # 定时任务
- - id: ruoyi-job
- uri: lb://ruoyi-job
- predicates:
- - Path=/schedule/**
- filters:
- - StripPrefix=1
- # 系统模块
- - id: ruoyi-system
- uri: lb://ruoyi-system
- predicates:
- - Path=/system/**
- filters:
- - StripPrefix=1
- # 文件服务
- - id: ruoyi-file
- uri: lb://ruoyi-file
- predicates:
- - Path=/file/**
- filters:
- - StripPrefix=1
- # 机构服务
- - id: mz-organization
- uri: lb://mz-organization
- predicates:
- - Path=/organization/**
- filters:
- - StripPrefix=1
- # 政务服务
- - id: mz-business
- uri: lb://mz-business
- predicates:
- - Path=/business/**
- filters:
- - StripPrefix=1
- # 门户网站
- - id: mz-portal
- uri: lb://mz-portal
- predicates:
- - Path=/portal/**
- filters:
- - StripPrefix=1
- # 数据同步
- - id: mz-datasync
- uri: lb://mz-datasync
- predicates:
- - Path=/datasync/**
- filters:
- - StripPrefix=1
- sentinel:
- # 取消控制台懒加载
- eager: true
- transport:
- # 控制台地址
- dashboard: 10.16.4.12:8718
- # nacos配置持久化
- datasource:
- ds1:
- nacos:
- server-addr: 10.16.4.12:8848
- dataId: sentinel-ruoyi-gateway
- groupId: MZ
- namespace: strong3
- data-type: json
- rule-type: flow
- # 安全配置
- 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
- - /system/processDefinition/**
- - /portal/**
- - /system/dict/data/common/type/*
- - /file/uploadPath/**
|