application-dev.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://120.79.211.173:3306/yingtao?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
  10. username: root
  11. password: Shanp123.
  12. # 从库数据源
  13. slave:
  14. # 从数据源开关/默认关闭
  15. enabled: false
  16. url:
  17. username:
  18. password:
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 10
  23. # 最大连接池数量
  24. maxActive: 20
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28. timeBetweenEvictionRunsMillis: 60000
  29. # 配置一个连接在池中最小生存的时间,单位是毫秒
  30. minEvictableIdleTimeMillis: 300000
  31. # 配置一个连接在池中最大生存的时间,单位是毫秒
  32. maxEvictableIdleTimeMillis: 900000
  33. # 配置检测连接是否有效
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. webStatFilter:
  39. enabled: true
  40. statViewServlet:
  41. enabled: true
  42. # 设置白名单,不填则允许所有访问
  43. allow:
  44. url-pattern: /monitor/druid/*
  45. filter:
  46. stat:
  47. enabled: true
  48. # 慢SQL记录
  49. log-slow-sql: true
  50. slow-sql-millis: 1000
  51. merge-sql: true
  52. wall:
  53. config:
  54. multi-statement-allow: true
  55. # Spring redis配置
  56. redis:
  57. host: 192.168.2.10
  58. password: Shanp123.
  59. database: 0
  60. port: 6379
  61. jedis:
  62. pool:
  63. #最大连接数
  64. max-active: 100
  65. #最大阻塞等待时间(负数表示没限制)
  66. max-wait: 2000
  67. #最大空闲
  68. max-idle: 500
  69. #最小空闲
  70. min-idle: 8
  71. #连接超时时间
  72. timeout: 5000
  73. region:
  74. dbpath: /srv/server/chat-server/admin/region/ip2region.db
  75. qqpath: /srv/server/chat-server/admin/region/qqwry.dat
  76. #1 btree 2 binary 3 memory;
  77. algorithm: 1
  78. common:
  79. system:
  80. secretaryUid: 1
  81. circleUid: 10090
  82. filter:
  83. - 10079
  84. - 10080
  85. url:
  86. link:
  87. statFlowLink: http://beta.hnyueqiang.com/front/roomrecord/index.html?roomUid=
  88. eggFlowLink: http://beta.hnyueqiang.com/front/drawrecord/index.html?roomUid=
  89. statFlowSecret: roomFlow
  90. outputLink: http://beta.hnyueqiang.com/front/pcHtml/drawrecord.html?linkedmeChannel=
  91. downloadUrl: https://www.hnyueqiang.com/front/download/download.html?shareUid=
  92. sendPKMQMessage: http://beta.hnyueqiang.com/mcoin/pk/sendDelayQueue
  93. # 日志配置
  94. logging:
  95. level:
  96. com.juxiao.xchat: debug
  97. org.springframework: warn
  98. org.mybatis: warn
  99. #ping++
  100. pingxx:
  101. apiKey: sk_test_TybjzLKKezzTr1iPCOjL8WfL
  102. appId: app_WjHqbPu9inzHaTuT
  103. apiIdSecond: app_bTuTaPTSOm58j1S0
  104. publicKey: -----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1XOQ6+nEvX3ypCO9n9FNKki6B5f//oxaKSRzWbOKryidMmYvbs2Mo4cOcILsRFOyS8n1a8q5bBwCer3CryTkEuTsEcCwNrEVg0KKJERoHimN+TQ355/+vesuoxnzz7NtQx6YTQwlL2fVWxElTW7jKo2mnk1FUROiS2TXZSbvjoYXIRkK9lMpS3nYly8pBqZrFaYrWYLAAAFLygM8xbrJ6N5Hu8yfYhYBtCK2OlTwIz/ydllzhKgFXwCdhGvGhGRPDO2vpQUFvJbKsyuUDecWkS+2IBeCTQINiQs9jFqyyKFlZg5rbciqT8+e7yzWtnp1tab7SccjpX/XOd88TpQtywIDAQAB-----END PUBLIC KEY-----
  105. privateKeyPath: /pingxxPath/pingxx_rsa_private_key.pem
  106. apiIdThree: app_GqzXrPSyTO88HqzL