ruoyi-gateway.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. - /system/merchant/audit/register
  19. - /system/merchant/audit/categories
  20. spring:
  21. cloud:
  22. # 网关配置
  23. gateway:
  24. # 打印请求日志(自定义)
  25. requestLog: true
  26. server:
  27. webflux:
  28. discovery:
  29. locator:
  30. lowerCaseServiceId: true
  31. enabled: true
  32. routes:
  33. # 认证中心
  34. - id: ruoyi-auth
  35. uri: lb://ruoyi-auth
  36. predicates:
  37. - Path=/auth/**
  38. filters:
  39. - StripPrefix=1
  40. # 代码生成
  41. - id: ruoyi-gen
  42. uri: lb://ruoyi-gen
  43. predicates:
  44. - Path=/tool/**
  45. filters:
  46. - StripPrefix=1
  47. # 系统模块
  48. - id: ruoyi-system
  49. uri: lb://ruoyi-system
  50. predicates:
  51. - Path=/system/**,/monitor/**
  52. filters:
  53. - StripPrefix=1
  54. # 资源服务
  55. - id: ruoyi-resource
  56. uri: lb://ruoyi-resource
  57. predicates:
  58. - Path=/resource/**
  59. filters:
  60. - StripPrefix=1
  61. # workflow服务
  62. - id: ruoyi-workflow
  63. uri: lb://ruoyi-workflow
  64. predicates:
  65. - Path=/workflow/**
  66. filters:
  67. - StripPrefix=1
  68. # warm-flow服务
  69. - id: warm-flow
  70. uri: lb://ruoyi-workflow
  71. predicates:
  72. - Path=/warm-flow-ui/**,/warm-flow/**
  73. # 服务管理
  74. - id: yingpaipay-service
  75. uri: lb://yingpaipay-service
  76. predicates:
  77. - Path=/service/**
  78. filters:
  79. - StripPrefix=1
  80. # 档案管理
  81. - id: yingpaipay-archieves
  82. uri: lb://yingpaipay-archieves
  83. predicates:
  84. - Path=/archieves/**
  85. filters:
  86. - StripPrefix=1
  87. # 履约者管理
  88. - id: yingpaipay-fulfiller
  89. uri: lb://yingpaipay-fulfiller
  90. predicates:
  91. - Path=/fulfiller/**
  92. filters:
  93. - StripPrefix=1
  94. # 演示服务
  95. - id: ruoyi-demo
  96. uri: lb://ruoyi-demo
  97. predicates:
  98. - Path=/demo/**
  99. filters:
  100. - StripPrefix=1
  101. # MQ演示服务
  102. - id: ruoyi-test-mq
  103. uri: lb://ruoyi-test-mq
  104. predicates:
  105. - Path=/test-mq/**
  106. filters:
  107. - StripPrefix=1