ruoyi-gateway-mvc.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. gateway:
  21. # 打印请求日志(自定义)
  22. requestLog: true
  23. server:
  24. webmvc:
  25. discovery:
  26. locator:
  27. lowerCaseServiceId: true
  28. enabled: true
  29. routes:
  30. # 认证中心
  31. - id: ruoyi-auth
  32. uri: lb://ruoyi-auth
  33. predicates:
  34. - Path=/auth/**
  35. filters:
  36. - StripPrefix=1
  37. # 代码生成
  38. - id: ruoyi-gen
  39. uri: lb://ruoyi-gen
  40. predicates:
  41. - Path=/tool/**
  42. filters:
  43. - StripPrefix=1
  44. # 系统模块
  45. - id: ruoyi-system
  46. uri: lb://ruoyi-system
  47. predicates:
  48. - Path=/system/**,/monitor/**
  49. filters:
  50. - StripPrefix=1
  51. # 资源服务
  52. - id: ruoyi-resource
  53. uri: lb://ruoyi-resource
  54. predicates:
  55. - Path=/resource/**
  56. filters:
  57. - StripPrefix=1
  58. # workflow服务
  59. - id: ruoyi-workflow
  60. uri: lb://ruoyi-workflow
  61. predicates:
  62. - Path=/workflow/**
  63. filters:
  64. - StripPrefix=1
  65. # warm-flow服务
  66. - id: warm-flow
  67. uri: lb://ruoyi-workflow
  68. predicates:
  69. - Path=/warm-flow-ui/**,/warm-flow/**
  70. # 演示服务
  71. - id: ruoyi-demo
  72. uri: lb://ruoyi-demo
  73. predicates:
  74. - Path=/demo/**
  75. filters:
  76. - StripPrefix=1
  77. # MQ演示服务
  78. - id: ruoyi-test-mq
  79. uri: lb://ruoyi-test-mq
  80. predicates:
  81. - Path=/test-mq/**
  82. filters:
  83. - StripPrefix=1