commodity-beta.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. # 数据源连接--end
  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-commodity/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. aliyunConfig:
  70. accessKey: LTAI4GBL3o4YkWnbKYgf2Xia
  71. secret: dBjAXqbYiEPP6Ukuk2ZsXQeET7FVkK
  72. searchHost: http://opensearch-cn-shenzhen.aliyuncs.com
  73. searchName: caimei_search_test
  74. # 服务域名
  75. caimei:
  76. wwwDomain: https://www-b.caimei365.com
  77. coreDomain: https://core-b.caimei365.com
  78. imageDomain: https://img-b.caimei365.com