ruoyi-gateway-strong3.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. spring:
  2. redis:
  3. host: 10.16.4.12
  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. # 机构服务
  52. - id: mz-organization
  53. uri: lb://mz-organization
  54. predicates:
  55. - Path=/organization/**
  56. filters:
  57. - StripPrefix=1
  58. # 政务服务
  59. - id: mz-business
  60. uri: lb://mz-business
  61. predicates:
  62. - Path=/business/**
  63. filters:
  64. - StripPrefix=1
  65. # 门户网站
  66. - id: mz-portal
  67. uri: lb://mz-portal
  68. predicates:
  69. - Path=/portal/**
  70. filters:
  71. - StripPrefix=1
  72. # 数据同步
  73. - id: mz-datasync
  74. uri: lb://mz-datasync
  75. predicates:
  76. - Path=/datasync/**
  77. filters:
  78. - StripPrefix=1
  79. sentinel:
  80. # 取消控制台懒加载
  81. eager: true
  82. transport:
  83. # 控制台地址
  84. dashboard: 10.16.4.12:8718
  85. # nacos配置持久化
  86. datasource:
  87. ds1:
  88. nacos:
  89. server-addr: 10.16.4.12:8848
  90. dataId: sentinel-ruoyi-gateway
  91. groupId: MZ
  92. namespace: strong3
  93. data-type: json
  94. rule-type: flow
  95. # 安全配置
  96. security:
  97. # 验证码
  98. captcha:
  99. enabled: true
  100. type: math
  101. # 防止XSS攻击
  102. xss:
  103. enabled: true
  104. excludeUrls:
  105. - /system/notice
  106. # 不校验白名单
  107. ignore:
  108. whites:
  109. - /auth/logout
  110. - /auth/login
  111. - /auth/register
  112. - /*/v2/api-docs
  113. - /csrf
  114. - /system/processDefinition/**
  115. - /portal/**
  116. - /system/dict/data/common/type/*
  117. - /file/uploadPath/**