123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- # 数据源配置
- spring:
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.jdbc.Driver
- druid:
- # 主库数据源
- master:
- url: jdbc:mysql://120.79.211.173:3306/yingtao?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
- username: root
- password: Shanp123.
- # 从库数据源
- slave:
- # 从数据源开关/默认关闭
- enabled: false
- url:
- username:
- password:
- # 初始连接数
- initialSize: 5
- # 最小连接池数量
- minIdle: 10
- # 最大连接池数量
- maxActive: 20
- # 配置获取连接等待超时的时间
- maxWait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- timeBetweenEvictionRunsMillis: 60000
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- minEvictableIdleTimeMillis: 300000
- # 配置一个连接在池中最大生存的时间,单位是毫秒
- maxEvictableIdleTimeMillis: 900000
- # 配置检测连接是否有效
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- webStatFilter:
- enabled: true
- statViewServlet:
- enabled: true
- # 设置白名单,不填则允许所有访问
- allow:
- url-pattern: /monitor/druid/*
- filter:
- stat:
- enabled: true
- # 慢SQL记录
- log-slow-sql: true
- slow-sql-millis: 1000
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- # Spring redis配置
- redis:
- host: 192.168.2.10
- password: Shanp123.
- database: 0
- port: 6379
- jedis:
- pool:
- #最大连接数
- max-active: 100
- #最大阻塞等待时间(负数表示没限制)
- max-wait: 2000
- #最大空闲
- max-idle: 500
- #最小空闲
- min-idle: 8
- #连接超时时间
- timeout: 5000
- region:
- dbpath: /srv/server/chat-server/admin/region/ip2region.db
- qqpath: /srv/server/chat-server/admin/region/qqwry.dat
- #1 btree 2 binary 3 memory;
- algorithm: 1
- common:
- system:
- secretaryUid: 1
- circleUid: 10090
- filter:
- - 10079
- - 10080
- url:
- link:
- statFlowLink: http://beta.hnyueqiang.com/front/roomrecord/index.html?roomUid=
- eggFlowLink: http://beta.hnyueqiang.com/front/drawrecord/index.html?roomUid=
- statFlowSecret: roomFlow
- outputLink: http://beta.hnyueqiang.com/front/pcHtml/drawrecord.html?linkedmeChannel=
- downloadUrl: https://www.hnyueqiang.com/front/download/download.html?shareUid=
- sendPKMQMessage: http://beta.hnyueqiang.com/mcoin/pk/sendDelayQueue
- # 日志配置
- logging:
- level:
- com.juxiao.xchat: debug
- org.springframework: warn
- org.mybatis: warn
- #ping++
- pingxx:
- apiKey: sk_test_TybjzLKKezzTr1iPCOjL8WfL
- appId: app_WjHqbPu9inzHaTuT
- apiIdSecond: app_bTuTaPTSOm58j1S0
- publicKey: -----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1XOQ6+nEvX3ypCO9n9FNKki6B5f//oxaKSRzWbOKryidMmYvbs2Mo4cOcILsRFOyS8n1a8q5bBwCer3CryTkEuTsEcCwNrEVg0KKJERoHimN+TQ355/+vesuoxnzz7NtQx6YTQwlL2fVWxElTW7jKo2mnk1FUROiS2TXZSbvjoYXIRkK9lMpS3nYly8pBqZrFaYrWYLAAAFLygM8xbrJ6N5Hu8yfYhYBtCK2OlTwIz/ydllzhKgFXwCdhGvGhGRPDO2vpQUFvJbKsyuUDecWkS+2IBeCTQINiQs9jFqyyKFlZg5rbciqT8+e7yzWtnp1tab7SccjpX/XOd88TpQtywIDAQAB-----END PUBLIC KEY-----
- privateKeyPath: /pingxxPath/pingxx_rsa_private_key.pem
- apiIdThree: app_GqzXrPSyTO88HqzL
|