119 lines
4.0 KiB
YAML
119 lines
4.0 KiB
YAML
xxl.job:
|
||
# 执行器开关
|
||
enabled: false
|
||
--- # 数据源配置
|
||
spring:
|
||
datasource:
|
||
type: com.zaxxer.hikari.HikariDataSource
|
||
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
|
||
dynamic:
|
||
# 性能分析插件(有性能损耗 不建议生产环境使用)
|
||
p6spy: true
|
||
# 设置默认的数据源或者数据源组,默认值即为 master
|
||
primary: master
|
||
# 严格模式 匹配不到数据源则报错
|
||
strict: true
|
||
datasource:
|
||
# 主库数据源
|
||
master:
|
||
type: ${spring.datasource.type}
|
||
driverClassName: com.mysql.cj.jdbc.Driver
|
||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||
url: jdbc:mysql://124.220.152.123:5306/cai-v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||
username: root
|
||
password: 383200134
|
||
# 从库数据源
|
||
slave:
|
||
lazy: true
|
||
type: ${spring.datasource.type}
|
||
driverClassName: com.mysql.cj.jdbc.Driver
|
||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||
username:
|
||
password:
|
||
hikari:
|
||
# 最大连接池数量
|
||
maxPoolSize: 20
|
||
# 最小空闲线程数量
|
||
minIdle: 10
|
||
# 配置获取连接等待超时的时间
|
||
connectionTimeout: 30000
|
||
# 校验超时时间
|
||
validationTimeout: 5000
|
||
# 空闲连接存活最大时间,默认10分钟
|
||
idleTimeout: 600000
|
||
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
||
maxLifetime: 1800000
|
||
# 多久检查一次连接的活性
|
||
keepaliveTime: 30000
|
||
|
||
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
|
||
spring:
|
||
redis:
|
||
# 地址
|
||
host: 124.222.254.188
|
||
# 端口,默认为6379
|
||
port: 9379
|
||
# 数据库索引
|
||
database: 12
|
||
# 密码(如没有密码请注释掉)
|
||
password: 383200134
|
||
# 连接超时时间
|
||
timeout: 15s
|
||
# 是否开启ssl
|
||
ssl: false
|
||
rabbitmq:
|
||
addresses: 124.222.254.188 #ip地址
|
||
username: admin # 账号
|
||
password: 383200134 # 密码
|
||
port: 5672
|
||
virtual-host: /cai-dev
|
||
|
||
redisson:
|
||
# redis key前缀
|
||
keyPrefix:
|
||
# 线程池数量
|
||
threads: 4
|
||
# Netty线程池数量
|
||
nettyThreads: 8
|
||
# 单节点配置
|
||
singleServerConfig:
|
||
# 客户端名称
|
||
clientName: ${ruoyi.name}
|
||
# 最小空闲连接数
|
||
connectionMinimumIdleSize: 8
|
||
# 连接池大小
|
||
connectionPoolSize: 32
|
||
# 连接空闲超时,单位:毫秒
|
||
idleConnectionTimeout: 10000
|
||
# 命令等待超时,单位:毫秒
|
||
timeout: 3000
|
||
# 发布和订阅连接池大小
|
||
subscriptionConnectionPoolSize: 50
|
||
|
||
--- # mail 邮件发送
|
||
mail:
|
||
enabled: false
|
||
agora:
|
||
app-id: 58ff3a37d91d48c7a8ef7a56fb8f62d0
|
||
key: 0cca1a53262c4c74b0a8c653a9b7540e
|
||
secret: 4a4f734285f34aea86cef63b2a186f27
|
||
yunxin:
|
||
app-key: 0aaefeb8a80a9889987c5346244b58e2
|
||
app-secret: 470345ca2832
|
||
knife4j:
|
||
enable: false
|
||
insight:
|
||
enable: true
|
||
# namespace命名,用户自定义
|
||
namespace: one
|
||
# Knife4jInsight的部署地址,如果是用平台的,可以配置为http://console.knife4j.net,用户购买Knife4jInsight后可以私有化部署,配置为用户私有化部署的地址
|
||
server: http://124.220.152.123:10086
|
||
# Knife4jInsight平台中的用户密钥信息,在个人中心-> 接口密钥 获取
|
||
secret: 0rhEH2ILED2WiVReyXeWEXE5NklDARdWkerW9/IruLY=
|
||
# 当前服务名称
|
||
service-name: oneToOne
|
||
cai:
|
||
enable-api-encryption: false
|
||
open-pay-proxy: false
|