Commit 9f00d60f by 郑云飞

生产环境配置修改

parent 366d7af8
--- # 临时文件存储位置 避免临时文件被系统清理报错
spring.servlet.multipart.location: /yongqi/server/temp
--- # 监控中心配置 --- # 监控中心配置
spring.boot.admin.client: spring.boot.admin.client:
# 增加客户端开关 # 增加客户端开关
...@@ -16,7 +13,7 @@ xxl.job: ...@@ -16,7 +13,7 @@ xxl.job:
# 执行器开关 # 执行器开关
enabled: true enabled: true
# 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。 # 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
admin-addresses: http://localhost:9100/xxl-job-admin admin-addresses: http://xinrenli.nyinhong.com/xxl-job-admin
# 执行器通讯TOKEN:非空时启用 # 执行器通讯TOKEN:非空时启用
access-token: xxl-job access-token: xxl-job
executor: executor:
...@@ -25,7 +22,7 @@ xxl.job: ...@@ -25,7 +22,7 @@ xxl.job:
# 执行器端口号 执行器从9101开始往后写 # 执行器端口号 执行器从9101开始往后写
port: 9303 port: 9303
# 执行器注册:默认IP:PORT # 执行器注册:默认IP:PORT
address: address: http://xinrenli.nyinhong.com/job
# 执行器IP:默认自动获取IP # 执行器IP:默认自动获取IP
ip: ip:
# 执行器运行日志文件存储磁盘路径 # 执行器运行日志文件存储磁盘路径
...@@ -40,7 +37,7 @@ spring: ...@@ -40,7 +37,7 @@ spring:
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
dynamic: dynamic:
# 性能分析插件(有性能损耗 不建议生产环境使用) # 性能分析插件(有性能损耗 不建议生产环境使用)
p6spy: false p6spy: true
# 设置默认的数据源或者数据源组,默认值即为 master # 设置默认的数据源或者数据源组,默认值即为 master
primary: master primary: master
# 严格模式 匹配不到数据源则报错 # 严格模式 匹配不到数据源则报错
...@@ -52,37 +49,37 @@ spring: ...@@ -52,37 +49,37 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true url: jdbc:mysql://db1.prd.nyinhong.com:3317/xinrenli?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
username: root username: xinrenli
password: root password: 27Rw2HL4h4PEEE4r
# 从库数据源 # 从库数据源
slave: # slave:
lazy: true # lazy: true
type: ${spring.datasource.type} # type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver # 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 # url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: # username:
password: # password:
# oracle: # oracle:
# type: ${spring.datasource.type} # type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver # driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE # url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT # username: ROOT
# password: root # password: root
# hikari: # hikari:
# connectionTestQuery: SELECT 1 FROM DUAL # connectionTestQuery: SELECT 1 FROM DUAL
# postgres: # postgres:
# type: ${spring.datasource.type} # type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver # driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root # username: root
# password: root # password: root
# sqlserver: # sqlserver:
# type: ${spring.datasource.type} # type: ${spring.datasource.type}
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true # url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA # username: SA
# password: root # password: root
hikari: hikari:
# 最大连接池数量 # 最大连接池数量
maxPoolSize: 20 maxPoolSize: 20
...@@ -103,13 +100,13 @@ spring: ...@@ -103,13 +100,13 @@ spring:
spring: spring:
redis: redis:
# 地址 # 地址
host: localhost host: cluster1.prd.nyinhong.com
# 端口,默认为6379 # 端口,默认为6379
port: 6379 port: 6319
# 数据库索引 # 数据库索引
database: 0 database: 3
# 密码(如没有密码请注释掉) # 密码(如没有密码请注释掉)
# password: password: yongqi@2022
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
# 是否开启ssl # 是否开启ssl
...@@ -119,17 +116,17 @@ redisson: ...@@ -119,17 +116,17 @@ redisson:
# redis key前缀 # redis key前缀
keyPrefix: keyPrefix:
# 线程池数量 # 线程池数量
threads: 16 threads: 4
# Netty线程池数量 # Netty线程池数量
nettyThreads: 32 nettyThreads: 8
# 单节点配置 # 单节点配置
singleServerConfig: singleServerConfig:
# 客户端名称 # 客户端名称
clientName: ${yongqi.name} clientName: ${yongqi.name}
# 最小空闲连接数 # 最小空闲连接数
connectionMinimumIdleSize: 32 connectionMinimumIdleSize: 8
# 连接池大小 # 连接池大小
connectionPoolSize: 64 connectionPoolSize: 32
# 连接空闲超时,单位:毫秒 # 连接空闲超时,单位:毫秒
idleConnectionTimeout: 10000 idleConnectionTimeout: 10000
# 命令等待超时,单位:毫秒 # 命令等待超时,单位:毫秒
...@@ -170,3 +167,38 @@ sms: ...@@ -170,3 +167,38 @@ sms:
signName: 测试 signName: 测试
# 腾讯专用 # 腾讯专用
sdkAppId: sdkAppId:
wx:
pay:
appId: wx312fb4fecd3ee803 #微信公众号或者小程序等的appid
mchId: 1640607392 #微信支付商户号
mchKey: fdfgg56hdfgh52sdf35dfgscfg84wsed #微信支付商户密钥
subAppId: #服务商模式下的子商户公众账号ID
subMchId: #服务商模式下的子商户号
keyPath: /opt/xinrenli/cert/apiclient_cert.p12 #C:\\ProgramData\\certKey\xinrenli\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
#keyPath: G:\\cert\\xinrenli\\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
notifyUrl: http://xinrenli.nyinhong.com/api/xinrenli/order/notify # 微信支付回调接口
refundNotifyUrl: http://xinrenli.nyinhong.com/api/xinrenli/order/refundNotify # 微信退款回调接口
# mp:
# useRedis: false
# redisConfig:
# host: cluster1.prd.jianghuxx.com
# port: 6319
# password: jhxx@2022
# timeout: 10
# configs:
# - appId: 1111 # 第一个公众号的appid
# secret: 1111 # 公众号的appsecret
# token: 111 # 接口配置里的Token值
# aesKey: 111 # 接口配置里的EncodingAESKey值
# - appId: 2222 # 第二个公众号的appid,以下同上
# secret: 1111
# token: 111
# aesKey: 111
miniapp:
configs:
- appid: wx312fb4fecd3ee803 #微信小程序的appid
secret: d35e4d7307d60619b407f803f76368c1 #微信小程序的Secret
token: #微信小程序消息服务器配置的token
aesKey: #微信小程序消息服务器配置的EncodingAESKey
msgDataFormat: JSON
...@@ -105,11 +105,11 @@ sa-token: ...@@ -105,11 +105,11 @@ sa-token:
# token名称 (同时也是cookie名称) # token名称 (同时也是cookie名称)
token-name: Authorization token-name: Authorization
# token有效期 设为一天 (必定过期) 单位: 秒 # token有效期 设为一天 (必定过期) 单位: 秒
timeout: 86400 timeout: 2592000
# token临时有效期 (指定时间无操作就过期) 单位: 秒 # token临时有效期 (指定时间无操作就过期) 单位: 秒
activity-timeout: 1800 activity-timeout: 2592000
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent: true is-concurrent: false
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: false is-share: false
# 是否尝试从header里读取token # 是否尝试从header里读取token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment