| 1 |
- server:
port: 8081
undertow:
buffer-size: 1024
direct-buffers: true
max-http-header-size: 8192
spring:
servlet:
multipart:
max-file-size: 50MB
mail:
host: smtp.163.com
username: yinheluxiangju@163.com
password: CLQPJPRRUERGTDXO
protocol: smtp
properties.mail.smtp.auth: true
properties.mail.smtp.port: 465
properties.mail.smtp.starttls.enable: true
properties.mail.smtp.starttls.required: true
properties.mail.smtp.ssl.enable: true
default-encoding: utf-8
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:mysql://172.17.0.17:3306/yhlxj?useAffectedRows=true
username: yhlxj
password: yhlxj123
platform: mysql
continue-on-error: false
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: hikariCP-mysql-
maximum-pool-size: 10
minimum-idle: 6
idle-timeout: 180000
max-lifetime: 600000
read-only: false
connection-timeout: 30000
connection-test-query: SELECT 1
# # 以下配置推荐mysql 5.7.27+ 或 8.0.18+
# https://cdn.oreillystatic.com/en/assets/1/event/21/Connector_J%20Performance%20Gems%20Presentation.pdf
data-source-properties: {
useSSL: false,
useAffectedRows: true,
useUnicode: true,
characterEncoding: utf8,
connectTimeout: 30000,
socketTimeout: 20000,
# 服务端缓存PrepStmts
useServerPrepStmts: true,
cachePrepStmts: true,
# 官方推荐250-500
prepStmtCacheSize: 512,
# 官方推荐2048
prepStmtCacheSqlLimit: 2048,
cacheServerConfiguration: true,
useLocalSessionState: true,
rewriteBatchedStatements: true,
useLocalTransactionState: true,
cacheResultSetMetadata: true,
elideSetAutoCommits: true,
maintainTimeStats: false,
}
redis:
# Redis数据库索引(默认为 0)
database: 0
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 63222
# Redis 密码
password: yinhe9913
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 8
# 连接池中的最大空闲连接
max-idle: 500
# 连接池最大连接数(使用负值表示没有限制)
max-active: 2000
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: 10000
# 连接超时时间(毫秒)
timeout: 5000
sa-token:
# token名称 (同时也是cookie名称)
token-name: satoken
# token有效期,单位s 默认30天, -1代表永不过期
timeout: 2592000
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: -1
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: false
# token风格
token-style: uuid
logging:
config: classpath:config/logback.xml
#mybatis
mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
executor-type: simple
type-aliases-package: com.cyksj.dao.model
configuration:
local-cache-scope: statement
cache-enabled: false
#Bean Searcher 分页配置
bean-searcher:
params:
pagination:
default-size: 10
page: start
size: limit
start: 1
wechat:
oldAppid: wxd58016eee53b6558
appid: wx6cbc2de2a55e5579
secret: 2ab6340e7787ab24de9f29094dee9d24
domain: https://nf.video/8081/api/
#默认微信商户
shopid: 1634772026
shopKey: p2B8BAKi2V3PgMDSSez82V67aIvMKBt5
payMsg: 银河录像局
wx-login:
appid: wx7c5494c38c6a78bd
secret: 95c7c542a583b42840765d758ec49bf5
redirectUri: https://nf.video/8081/api/auth/wx/authLogin/baseRedirect
loginUrl: https://nf.video
cpsRedirectUri: https://nf.video/8081/api/cps/manage/wx/authLogin/baseRedirect
cpsLoginUrl: https://cps.nf.video/yinhe/cps/loginNexte
yhShopRedirectUri: https://nf.video/8081/api/yhShop/manage/wx/authLogin/baseRedirect
yhShopLoginUrl: https://shop.liuliangbang.vip/mall/admin/loginNexte
baRedirectUrl: https://nf.video/8081/api/applets/market/task/bind/wx/baseRedirect
remark: 银河录像网页微信登录
wx-shop-login:
appid: wx7c5494c38c6a78bd #todo
secret: 95c7c542a583b42840765d758ec49bf5 #todo
redirectUri: https://shop.liuliangbang.vip/8081/api/auth/wx/authLogin/baseRedirect
loginUrl: https://shop.liuliangbang.vip/
remark: 小店店铺网页微信授权
yhlx:
corpId: ww9c0ccaad2e9d3822
corpSecret: Ov0mlArSItBrs9EuOMt5Ou_faGdplDDIvPgIhgup51E
encodingAESKey: bqoACJutQEgW7KOgBoezuQkk7y2HQSyRp1sQ8qnAi6C
token: 2e0aWIfBewWNN5BNMq9cBeLf9x
domain: https://nf.video/8081/api/
#银河录像局小程序
yhmini:
appid: wx383c483d3bcf155a
secret: bf6ca029a3102f390486a7a14b218b06
#广告投放小程序
advertisement:
appId: wx895f960ea6b8c5d0
secret: 19b5f5121bc7cc1bc010ee7c4ac509e9
shopId: 1644299849
shopKey: 5y5ZScTJGm0q0umHQOD4r3EfjRvCioUx
notify: https://nf.video/8081/api/
#广告投放公众号
advertisementwxapp:
appId: wx6158deb06d316e0b
secret: 44c1e7431099fc0bd21dc320822b0108
shopId: 1644299849
shopKey: 5y5ZScTJGm0q0umHQOD4r3EfjRvCioUx
notify: https://xue.niupian.com.cn/8081/api/
chatgpt:
domain: "https://gpt.galaxydvd.com"
|