ruoyi-gateway.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # 安全配置
  2. security:
  3. # 不校验白名单
  4. ignore:
  5. whites:
  6. - /auth/code
  7. - /auth/logout
  8. - /auth/login
  9. - /auth/binding/*
  10. - /auth/register
  11. - /auth/tenant/list
  12. - /resource/sms/code
  13. - /resource/sse/close
  14. - /*/v3/api-docs
  15. - /*/error
  16. - /csrf
  17. - /warm-flow-ui/**
  18. spring:
  19. cloud:
  20. # 网关配置
  21. gateway:
  22. # 打印请求日志(自定义)
  23. requestLog: true
  24. server:
  25. webflux:
  26. discovery:
  27. locator:
  28. lowerCaseServiceId: true
  29. enabled: true
  30. routes:
  31. # 认证中心
  32. - id: ruoyi-auth
  33. uri: lb://ruoyi-auth
  34. predicates:
  35. - Path=/auth/**
  36. filters:
  37. - StripPrefix=1
  38. # 代码生成
  39. - id: ruoyi-gen
  40. uri: lb://ruoyi-gen
  41. predicates:
  42. - Path=/tool/**
  43. filters:
  44. - StripPrefix=1
  45. # 系统模块
  46. - id: ruoyi-system
  47. uri: lb://ruoyi-system
  48. predicates:
  49. - Path=/system/**,/monitor/**
  50. filters:
  51. - StripPrefix=1
  52. # 资源服务
  53. - id: ruoyi-resource
  54. uri: lb://ruoyi-resource
  55. predicates:
  56. - Path=/resource/**
  57. filters:
  58. - StripPrefix=1
  59. # workflow服务
  60. - id: ruoyi-workflow
  61. uri: lb://ruoyi-workflow
  62. predicates:
  63. - Path=/workflow/**
  64. filters:
  65. - StripPrefix=1
  66. # warm-flow服务
  67. - id: warm-flow
  68. uri: lb://ruoyi-workflow
  69. predicates:
  70. - Path=/warm-flow-ui/**,/warm-flow/**
  71. # 演示服务
  72. - id: ruoyi-demo
  73. uri: lb://ruoyi-demo
  74. predicates:
  75. - Path=/demo/**
  76. filters:
  77. - StripPrefix=1
  78. # MQ演示服务
  79. - id: ruoyi-test-mq
  80. uri: lb://ruoyi-test-mq
  81. predicates:
  82. - Path=/test-mq/**
  83. filters:
  84. - StripPrefix=1