siwei-gateway-dev.yml 1.9 KB

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