gateway-prod.yml 1000 B

1234567891011121314151617181920212223242526272829303132333435
  1. spring:
  2. redis:
  3. host: 172.31.165.23
  4. port: 6379
  5. #password: 6#xsI%b4o@5c3RoE
  6. #Redis数据库索引(默认为0)
  7. database: 0
  8. #连接池最大连接数(使用负值表示没有限制)
  9. jedis:
  10. pool:
  11. max-active: 50
  12. #连接池最大阻塞等待时间(使用负值表示没有限制)
  13. max-wait: 3000
  14. #连接池中的最大空闲连接
  15. max-idle: 20
  16. #连接池中的最小空闲连接
  17. min-idle: 2
  18. #连接超时时间(毫秒)
  19. timeout: 5000
  20. # 指定服务注册中心的地址
  21. eureka:
  22. instance:
  23. prefer-ip-address: true # 是否使用 ip 地址注册
  24. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  25. client:
  26. service-url: # 设置服务注册中心地址
  27. defaultZone: http://120.79.162.1:18000/eureka/
  28. #日志配置
  29. logging:
  30. file:
  31. path: /mnt/newdatadrive/data/runtime/cloud-instance/cloud-gateway/logs
  32. level:
  33. root: info