Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli
Commits
9f00d60f
Commit
9f00d60f
authored
Apr 18, 2023
by
郑云飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产环境配置修改
parent
366d7af8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
47 deletions
+79
-47
yongqi-admin/src/main/resources/application-prod.yml
+76
-44
yongqi-admin/src/main/resources/application.yml
+3
-3
No files found.
yongqi-admin/src/main/resources/application-prod.yml
View file @
9f00d60f
---
# 临时文件存储位置 避免临时文件被系统清理报错
spring.servlet.multipart.location
:
/yongqi/server/temp
---
# 监控中心配置
spring.boot.admin.client
:
# 增加客户端开关
...
...
@@ -16,7 +13,7 @@ xxl.job:
# 执行器开关
enabled
:
true
# 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
admin-addresses
:
http://
localhost:9100
/xxl-job-admin
admin-addresses
:
http://
xinrenli.nyinhong.com
/xxl-job-admin
# 执行器通讯TOKEN:非空时启用
access-token
:
xxl-job
executor
:
...
...
@@ -25,7 +22,7 @@ xxl.job:
# 执行器端口号 执行器从9101开始往后写
port
:
9303
# 执行器注册:默认IP:PORT
address
:
address
:
http://xinrenli.nyinhong.com/job
# 执行器IP:默认自动获取IP
ip
:
# 执行器运行日志文件存储磁盘路径
...
...
@@ -40,7 +37,7 @@ spring:
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
dynamic
:
# 性能分析插件(有性能损耗 不建议生产环境使用)
p6spy
:
fals
e
p6spy
:
tru
e
# 设置默认的数据源或者数据源组,默认值即为 master
primary
:
master
# 严格模式 匹配不到数据源则报错
...
...
@@ -52,37 +49,37 @@ spring:
driverClassName
:
com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# 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
:
root
password
:
root
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
:
xinrenli
password
:
27Rw2HL4h4PEEE4r
# 从库数据源
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
:
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# sqlserver:
# type: ${spring.datasource.type}
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
#
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:
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# sqlserver:
# type: ${spring.datasource.type}
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
hikari
:
# 最大连接池数量
maxPoolSize
:
20
...
...
@@ -103,13 +100,13 @@ spring:
spring
:
redis
:
# 地址
host
:
localhost
host
:
cluster1.prd.nyinhong.com
# 端口,默认为6379
port
:
63
7
9
port
:
63
1
9
# 数据库索引
database
:
0
database
:
3
# 密码(如没有密码请注释掉)
# password:
password
:
yongqi@2022
# 连接超时时间
timeout
:
10s
# 是否开启ssl
...
...
@@ -119,17 +116,17 @@ redisson:
# redis key前缀
keyPrefix
:
# 线程池数量
threads
:
16
threads
:
4
# Netty线程池数量
nettyThreads
:
32
nettyThreads
:
8
# 单节点配置
singleServerConfig
:
# 客户端名称
clientName
:
${yongqi.name}
# 最小空闲连接数
connectionMinimumIdleSize
:
32
connectionMinimumIdleSize
:
8
# 连接池大小
connectionPoolSize
:
64
connectionPoolSize
:
32
# 连接空闲超时,单位:毫秒
idleConnectionTimeout
:
10000
# 命令等待超时,单位:毫秒
...
...
@@ -170,3 +167,38 @@ sms:
signName
:
测试
# 腾讯专用
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
yongqi-admin/src/main/resources/application.yml
View file @
9f00d60f
...
...
@@ -105,11 +105,11 @@ sa-token:
# token名称 (同时也是cookie名称)
token-name
:
Authorization
# token有效期 设为一天 (必定过期) 单位: 秒
timeout
:
864
00
timeout
:
25920
00
# token临时有效期 (指定时间无操作就过期) 单位: 秒
activity-timeout
:
18
00
activity-timeout
:
25920
00
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent
:
tru
e
is-concurrent
:
fals
e
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share
:
false
# 是否尝试从header里读取token
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment