application-prod.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. spring:
  2. #数据源连接--start
  3. datasource:
  4. url: jdbc:mysql://rm-wz928s8btl7kxil44.mysql.rds.aliyuncs.com:3306/caimei?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
  5. username: coder
  6. password: diKtPYZ%wToI&9#L
  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. #数据源连接--end
  19. #Redis连接--start
  20. redis:
  21. host: 172.31.165.23
  22. port: 6379
  23. #password: 6#xsI%b4o@5c3RoE
  24. #Redis数据库索引(默认为0)
  25. database: 0
  26. #连接池最大连接数(使用负值表示没有限制)
  27. jedis:
  28. pool:
  29. max-active: 50
  30. #连接池最大阻塞等待时间(使用负值表示没有限制)
  31. max-wait: 3000
  32. #连接池中的最大空闲连接
  33. max-idle: 20
  34. #连接池中的最小空闲连接
  35. min-idle: 2
  36. #连接超时时间(毫秒)
  37. timeout: 5000
  38. #Redis连接--end
  39. #日志配置
  40. logging:
  41. file:
  42. path: /mnt/newdatadrive/data/runtime/jar-instance/manager-api/logs
  43. level:
  44. root: info
  45. # 服务域名
  46. caimei:
  47. wwwDomain: https://www.caimei365.com
  48. coreDomain: https://core.caimei365.com
  49. imageDomain: https://img.caimei365.com
  50. cm:
  51. config: product
  52. aliyun:
  53. accessKeyId: LTAI4GBL3o4YkWnbKYgf2Xia
  54. accessKeySecret: dBjAXqbYiEPP6Ukuk2ZsXQeET7FVkK
  55. bucketName: caimei-oss
  56. endpoint: https://oss-cn-shenzhen.aliyuncs.com
  57. # 微信公众号
  58. wechat:
  59. apiUrl: https://api.weixin.qq.com
  60. publicUrl: https://mp.weixin.qq.com
  61. caimei:
  62. id: gh_ef75b1b89b74
  63. appid: wx91c4152b60ca91a3
  64. secret: a563dd2c07c9c815a4e697c8b6cb73dc
  65. hehe:
  66. id: gh_eecada09617d
  67. appid: wxd81864ddacc0ed25
  68. secret: 7873323db2984c75556f8d04e76d1f02
  69. caimei-old: # 旧公众号,openid迁移用
  70. id: gh_7de98a37fb6a
  71. appid: wxea43a0f9ebce9e66
  72. secret: 1c3cd60908e72dd280840bee9e15f7f6
  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.24:22122