ruoyi-gateway.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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: yingpaipay-service
  73. uri: lb://yingpaipay-service
  74. predicates:
  75. - Path=/service/**
  76. filters:
  77. - StripPrefix=1
  78. # 档案管理
  79. - id: yingpaipay-archieves
  80. uri: lb://yingpaipay-archieves
  81. predicates:
  82. - Path=/archieves/**
  83. filters:
  84. - StripPrefix=1
  85. # 履约者管理
  86. - id: yingpaipay-fulfiller
  87. uri: lb://yingpaipay-fulfiller
  88. predicates:
  89. - Path=/fulfiller/**
  90. filters:
  91. - StripPrefix=1
  92. # 演示服务
  93. - id: ruoyi-demo
  94. uri: lb://ruoyi-demo
  95. predicates:
  96. - Path=/demo/**
  97. filters:
  98. - StripPrefix=1
  99. # MQ演示服务
  100. - id: ruoyi-test-mq
  101. uri: lb://ruoyi-test-mq
  102. predicates:
  103. - Path=/test-mq/**
  104. filters:
  105. - StripPrefix=1