ruoyi-gateway-dev.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. spring:
  2. redis:
  3. host: localhost
  4. port: 6379
  5. password:
  6. cloud:
  7. gateway:
  8. discovery:
  9. locator:
  10. lowerCaseServiceId: true
  11. enabled: true
  12. routes:
  13. # 认证中心
  14. - id: ruoyi-auth
  15. uri: lb://ruoyi-auth
  16. predicates:
  17. - Path=/auth/**
  18. filters:
  19. # 验证码处理
  20. - CacheRequestFilter
  21. - ValidateCodeFilter
  22. - StripPrefix=1
  23. # 代码生成
  24. - id: ruoyi-gen
  25. uri: lb://ruoyi-gen
  26. predicates:
  27. - Path=/code/**
  28. filters:
  29. - StripPrefix=1
  30. # 定时任务
  31. - id: ruoyi-job
  32. uri: lb://ruoyi-job
  33. predicates:
  34. - Path=/schedule/**
  35. filters:
  36. - StripPrefix=1
  37. # 系统模块
  38. - id: ruoyi-system
  39. uri: lb://ruoyi-system
  40. predicates:
  41. - Path=/system/**
  42. filters:
  43. - StripPrefix=1
  44. # 文件服务
  45. - id: ruoyi-file
  46. uri: lb://ruoyi-file
  47. predicates:
  48. - Path=/file/**
  49. filters:
  50. - StripPrefix=1
  51. #20241016新增《ruoyi-crmcust》CRM 客户信息管理
  52. - id: ruoyi-crmcust
  53. uri: lb://ruoyi-crmcust
  54. predicates:
  55. - Path=/file/**
  56. filters:
  57. - StripPrefix=1
  58. # 安全配置
  59. security:
  60. # 验证码
  61. captcha:
  62. enabled: true
  63. type: math
  64. # 防止XSS攻击
  65. xss:
  66. enabled: true
  67. excludeUrls:
  68. - /system/notice
  69. # 不校验白名单
  70. ignore:
  71. whites:
  72. - /auth/logout
  73. - /auth/login
  74. - /auth/register
  75. - /*/v2/api-docs
  76. - /*/v3/api-docs
  77. - /csrf
  78. # springdoc配置
  79. springdoc:
  80. webjars:
  81. # 访问前缀
  82. prefix: