# 安全配置 security: # 不校验白名单 ignore: whites: - /auth/code - /auth/logout - /auth/login - /auth/binding/* - /auth/social/callback - /auth/register - /auth/tenant/list - /resource/sms/code - /resource/sse/close - /*/v3/api-docs - /*/error - /csrf - /sso/getSsoAuthUrl - /sso/isLogin - /sso/doLoginByTicket # sa-token配置 sa-token: sign: # API client和server之间调用 接口签名秘钥 (随便乱摁几个字母即可) secret-key: kQwIOrYbtXmSDkwEiFngrKidMcdrgKor # token名称 (同时也是cookie名称) token-name: Authorization # 允许动态设置 token 有效期 dynamic-active-timeout: true # 允许从 header 读取 token is-read-header: true # 关闭 cookie 鉴权 从根源杜绝 csrf 漏洞风险 is-read-cookie: false # SSO-相关配置 sso-client: # SSO-Server 端主机地址 server-url: http://sa-sso-server.com:19000 auth-url: http://sa-sso-server.com:8701/?mode=ticket#/sso-login client: "e5cd7e4891bf95d1d19206ce24a7b32e" #jwt密钥 jwt-secret-key: abcdcosctlklmnopqrstuvwxyz token-prefix: Bearer spring: cloud: # 网关配置 gateway: # 打印请求日志(自定义) requestLog: true discovery: locator: lowerCaseServiceId: true enabled: true routes: # 认证中心 - id: ruoyi-auth uri: lb://ruoyi-auth predicates: - Path=/auth/** filters: - StripPrefix=1 # 代码生成 - id: ruoyi-gen uri: lb://ruoyi-gen predicates: - Path=/tool/** filters: - StripPrefix=1 # 系统模块 - id: ruoyi-system uri: lb://ruoyi-system predicates: - Path=/system/**,/monitor/** filters: - StripPrefix=1 # 资源服务 - id: ruoyi-resource uri: lb://ruoyi-resource predicates: - Path=/resource/** filters: - StripPrefix=1 # workflow服务 - id: ruoyi-workflow uri: lb://ruoyi-workflow predicates: - Path=/workflow/** # 演示服务 - id: ruoyi-demo uri: lb://ruoyi-demo predicates: - Path=/demo/** filters: - StripPrefix=1 # MQ演示服务 - id: ruoyi-h5 uri: lb://ruoyi-h5 predicates: - Path=/ruoyi-h5/** filters: - StripPrefix=1