tools-beta.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. spring:
  2. # 数据源连接--start
  3. datasource:
  4. url: jdbc:mysql://172.31.165.28:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  5. username: developer
  6. password: J5p3tgOVazNl4ydf
  7. # Hikari will use the above plus the following to setup connection pooling
  8. type: com.zaxxer.hikari.HikariDataSource
  9. hikari:
  10. minimum-idle: 5
  11. maximum-pool-size: 15
  12. auto-commit: true
  13. idle-timeout: 30000
  14. pool-name: DatebookHikariCP
  15. max-lifetime: 1800000
  16. connection-timeout: 30000
  17. connection-test-query: SELECT 1
  18. #mongo数据源配置
  19. data:
  20. mongodb:
  21. #使用uri连接
  22. # mongodb://用户名:密码@IP地址:27017/数据库
  23. uri: mongodb://zzj:easyCome.@47.107.48.218:27017/userInfo
  24. # 数据源连接--end
  25. redis:
  26. host: 172.31.165.27
  27. port: 6379
  28. password: 6#xsI%b4o@5c3RoE
  29. #Redis数据库索引(默认为0)
  30. database: 0
  31. #连接池最大连接数(使用负值表示没有限制)
  32. jedis:
  33. pool:
  34. max-active: 50
  35. #连接池最大阻塞等待时间(使用负值表示没有限制)
  36. max-wait: 3000
  37. #连接池中的最大空闲连接
  38. max-idle: 20
  39. #连接池中的最小空闲连接
  40. min-idle: 2
  41. #连接超时时间(毫秒)
  42. timeout: 5000
  43. #整合mybatis
  44. mybatis:
  45. #加载Mybatis映射文件
  46. mapper-locations:
  47. - classpath:mapper/*.xml
  48. # 指定服务注册中心的地址
  49. eureka:
  50. instance:
  51. prefer-ip-address: true # 是否使用 ip 地址注册
  52. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  53. client:
  54. service-url: # 设置服务注册中心地址
  55. defaultZone: http://47.119.112.46:18000/eureka/
  56. #日志配置
  57. logging:
  58. file:
  59. path: /mnt/newdatadrive/data/runtime/cloud-instance/server-tools/logs
  60. level:
  61. root: info
  62. # swagger配置
  63. swagger:
  64. # swagger开启状态,true开启,false关闭
  65. enabled: true
  66. ui-config:
  67. operations-sorter: method
  68. # 服务域名
  69. caimei:
  70. wwwDomain: https://www-b.caimei365.com
  71. coreDomain: https://core-b.caimei365.com
  72. imageDomain: https://img-b.caimei365.com
  73. #DFS配置
  74. fdfs:
  75. so-timeout: 5000 #上传的超时时间
  76. connect-timeout: 2000 #连接超时时间
  77. thumb-image: #缩略图生成参数
  78. width: 150
  79. height: 150
  80. tracker-list: #TrackerList参数,支持多个
  81. - 172.31.165.28:22122
  82. # 阿里云
  83. aliyunConfig:
  84. #阿里云oss存储
  85. accessKeyId: LTAI4GBL3o4YkWnbKYgf2Xia
  86. accessKeySecret: dBjAXqbYiEPP6Ukuk2ZsXQeET7FVkK
  87. bucketName: caimei-oss
  88. endpoint: https://oss-cn-shenzhen.aliyuncs.com
  89. # rocketmq 配置项,对应 RocketMQProperties 配置类
  90. rocketmq:
  91. name-server: 39.108.11.105:9876 # RocketMQ Namesrv,测试环境120.79.25.27:9876未启动
  92. producer:
  93. group: caimei_beta_group # 生产者分组
  94. send-message-timeout: 3000 # 发送消息超时时间,单位:毫秒。默认为 3000 。
  95. # compress-message-body-threshold: 4096 # 消息压缩阀值,当消息体的大小超过该阀值后,进行消息压缩。默认为 4 * 1024B
  96. # max-message-size: 4194304 # 消息体的最大允许大小。。默认为 4 * 1024 * 1024B
  97. # retry-times-when-send-failed: 2 # 同步发送消息时,失败重试次数。默认为 2 次。
  98. # retry-times-when-send-async-failed: 2 # 异步发送消息时,失败重试次数。默认为 2 次。
  99. # retry-next-server: false # 发送消息给 Broker 时,如果发送失败,是否重试另外一台 Broker 。默认为 false
  100. # access-key: # Access Key ,可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/acl/user_guide.md 文档
  101. # secret-key: # Secret Key
  102. # enable-msg-trace: true # 是否开启消息轨迹功能。默认为 true 开启。可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/msg_trace/user_guide.md 文档
  103. # customized-trace-topic: RMQ_SYS_TRACE_TOPIC # 自定义消息轨迹的 Topic 。默认为 RMQ_SYS_TRACE_TOPIC 。
  104. # # Consumer 配置项
  105. # consumer:
  106. # listeners: # 配置某个消费分组,是否监听指定 Topic 。结构为 Map<消费者分组, <Topic, Boolean>> 。默认情况下,不配置表示监听。
  107. # erbadagang-consumer-group:
  108. # topic1: false # 关闭 test-consumer-group 对 topic1 的监听消费