application-local.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. spring:
  2. redis:
  3. host: 172.192.10.105
  4. port: 30013
  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-system
  25. uri: lb://ruoyi-system
  26. predicates:
  27. - Path=/system/**
  28. filters:
  29. - StripPrefix=1
  30. # 能源管理
  31. - id: ems-server
  32. uri: http://localhost:9202
  33. predicates:
  34. - Path=/ems/**
  35. filters:
  36. - StripPrefix=0
  37. # 定时任务
  38. - id: ruoyi-job
  39. uri: lb://ruoyi-job
  40. predicates:
  41. - Path=/schedule/**
  42. filters:
  43. - StripPrefix=1
  44. # 代码生成
  45. - id: ruoyi-gen
  46. uri: lb://ruoyi-gen
  47. predicates:
  48. - Path=/code/**
  49. filters:
  50. - StripPrefix=1
  51. # 安全配置
  52. security:
  53. # 验证码
  54. captcha:
  55. enabled: true
  56. type: math
  57. # 防止XSS攻击
  58. xss:
  59. enabled: true
  60. excludeUrls:
  61. - /system/notice
  62. # 不校验白名单
  63. ignore:
  64. whites:
  65. - /auth/logout
  66. - /auth/login
  67. - /auth/register
  68. - /*/v2/api-docs
  69. - /csrf