application-prod.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. spring:
  2. redis:
  3. database: 0
  4. host: 172.30.0.17
  5. password: hcst@2021..
  6. port: 6379
  7. lettuce:
  8. pool:
  9. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  10. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  11. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  12. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  13. shutdown-timeout: 100ms
  14. cloud:
  15. nacos:
  16. config:
  17. password:
  18. username:
  19. discovery:
  20. server-addr: 172.30.0.7:8848
  21. service: jeecg-gateway
  22. namespace:
  23. gateway:
  24. discovery:
  25. locator:
  26. enabled: true
  27. # globalcors:
  28. # cors-configurations:
  29. # '[/**]':
  30. # allowCredentials: true
  31. # allowedOrigins: "*"
  32. # allowedMethods: "*"
  33. # allowedHeaders: "*"
  34. routes:
  35. - id: jeecg-system
  36. uri: lb://jeecg-system
  37. filters:
  38. # - DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin
  39. predicates:
  40. - Path=/jeecg-boot/**
  41. - id: jeecg-bytedance-ad
  42. uri: lb://jeecg-bytedance-ad
  43. filters:
  44. # - DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin
  45. predicates:
  46. - Path=/bytedance/ad/**
  47. # hystrix 信号量隔离,3秒后自动超时
  48. hystrix:
  49. enabled: true
  50. shareSecurityContext: true
  51. command:
  52. default:
  53. execution:
  54. isolation:
  55. strategy: SEMAPHORE
  56. thread:
  57. timeoutInMilliseconds: 3000
  58. jeecg:
  59. route:
  60. config:
  61. data-id: mate-gateway-router
  62. group: DEFAULT_GROUP
  63. data-type: yml