application-local.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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://127.0.0.1:9202
  33. predicates:
  34. - Path=/ems/**
  35. filters:
  36. - StripPrefix=0
  37. # 能源-设备适配器
  38. - id: ems-dev-adapter
  39. uri: http://127.0.0.1:9203
  40. predicates:
  41. - Path=/ems-dev-adapter/**
  42. filters:
  43. - StripPrefix=0
  44. # 定时任务
  45. - id: ruoyi-job
  46. uri: lb://ruoyi-job
  47. predicates:
  48. - Path=/schedule/**
  49. filters:
  50. - StripPrefix=1
  51. # 代码生成
  52. - id: ruoyi-gen
  53. uri: lb://ruoyi-gen
  54. predicates:
  55. - Path=/code/**
  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. - /csrf