siwei-gateway-dev.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. 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. - /*/v3/api-docs
  70. - /csrf
  71. # springdoc配置
  72. springdoc:
  73. webjars:
  74. # 访问前缀
  75. prefix: