user-prod.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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:
  20. host: 172.31.165.23
  21. port: 6379
  22. #password: 6#xsI%b4o@5c3RoE
  23. #Redis数据库索引(默认为0)
  24. database: 0
  25. #连接池最大连接数(使用负值表示没有限制)
  26. jedis:
  27. pool:
  28. max-active: 50
  29. #连接池最大阻塞等待时间(使用负值表示没有限制)
  30. max-wait: 3000
  31. #连接池中的最大空闲连接
  32. max-idle: 20
  33. #连接池中的最小空闲连接
  34. min-idle: 2
  35. #连接超时时间(毫秒)
  36. timeout: 5000
  37. #整合mybatis
  38. mybatis:
  39. #加载Mybatis映射文件
  40. mapper-locations:
  41. - classpath:mapper/*.xml
  42. # 指定服务注册中心的地址
  43. eureka:
  44. instance:
  45. prefer-ip-address: true # 是否使用 ip 地址注册
  46. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  47. client:
  48. service-url: # 设置服务注册中心地址
  49. defaultZone: http://120.79.162.1:18000/eureka/
  50. #日志配置
  51. logging:
  52. file:
  53. path: /mnt/newdatadrive/data/runtime/cloud-instance/server-user/logs
  54. level:
  55. root: info
  56. # 微信配置
  57. wx:
  58. #pcwx信息
  59. app-id: wx22be9ab1a6aa4715
  60. app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
  61. # 微信授权回调(扫码),nginx中转
  62. redirect-uri: https://www.caimei365.com/auth/callback
  63. #小程序wx信息
  64. mini-app-id: wxf3cd4ae0cdd11c36
  65. mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
  66. #crm公众号信息
  67. crm-app-id: wx91c4152b60ca91a3
  68. crm-app-secret: a563dd2c07c9c815a4e697c8b6cb73dc
  69. #呵呵商城小程序信息
  70. hehe-app-id: wx2c3b0a7f343235b1
  71. hehe-app-secret: 1bb87882ee85a0411923d7f56c7dde75
  72. mcare-app-id: wxaa4acc852618da69;
  73. mcare-app-secret: 3161feca03371cd96dd8043f55ee8ad0;
  74. # swagger配置
  75. swagger:
  76. # swagger开启状态,true开启,false关闭
  77. enabled: false
  78. ui-config:
  79. operations-sorter: method
  80. caimei:
  81. # 小程序邀请码过期天数
  82. validTime: 7
  83. # 服务域名
  84. wwwDomain: https://www.caimei365.com
  85. coreDomain: https://core.caimei365.com
  86. imageDomain: https://img.caimei365.com