107 lines
2.6 KiB
YAML
107 lines
2.6 KiB
YAML
server:
|
||
port: 19001
|
||
servlet:
|
||
session:
|
||
timeout: 86400s
|
||
spring:
|
||
datasource:
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
username: root
|
||
password: 123456
|
||
url: jdbc:mysql://127.0.0.1:3306/agent_skills?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false&allowPublicKeyRetrieval=true
|
||
hikari:
|
||
pool-name: DevHikariPool
|
||
maximum-pool-size: 12
|
||
connection-timeout: 60000
|
||
connection-test-query: SELECT 1
|
||
# Redis配置,引用公共配置
|
||
redis:
|
||
host: ${common.redis.host}
|
||
port: ${common.redis.port}
|
||
password: ${common.redis.password}
|
||
database: ${common.redis.database}
|
||
timeout: 10000
|
||
lettuce:
|
||
pool:
|
||
max-active: 8
|
||
max-wait: -1
|
||
max-idle: 8
|
||
min-idle: 0
|
||
|
||
|
||
# Sa-Token配置
|
||
sa-token:
|
||
# token名称
|
||
token-name: Authorization
|
||
# token有效期(默认1天,单位:秒)
|
||
timeout: 86400
|
||
# token过期后是否允许续期
|
||
is-concurrent: true
|
||
# 是否允许同一账号多地登录
|
||
is-share: false
|
||
# token风格(默认:uuid)
|
||
token-style: uuid
|
||
# 是否在cookie中添加token
|
||
is-cookie: false
|
||
# 是否在header中添加token
|
||
is-header: true
|
||
# 是否使用Redis存储token
|
||
is-redis: true
|
||
# Redis配置,引用公共配置
|
||
redis:
|
||
# Redis主机地址
|
||
host: ${common.redis.host}
|
||
# Redis端口
|
||
port: ${common.redis.port}
|
||
# Redis密码
|
||
password: ${common.redis.password}
|
||
# Redis数据库索引
|
||
database: ${common.redis.database}
|
||
|
||
# 验证码配置
|
||
captcha:
|
||
# 是否启用验证码验证
|
||
enabled: false
|
||
# 验证码有效期(秒)
|
||
expire-time: 300
|
||
# 验证码长度
|
||
length: 4
|
||
|
||
# JetCache配置
|
||
jetcache:
|
||
# 开启JetCache注解支持
|
||
enable-stat: true
|
||
# 缓存实例配置
|
||
local:
|
||
# 默认本地缓存
|
||
default:
|
||
type: linkedhashmap
|
||
keyConvertor: fastjson
|
||
limit: 100
|
||
# 远程缓存配置
|
||
remote:
|
||
# 默认远程缓存(Redis)
|
||
default:
|
||
type: redis
|
||
keyConvertor: fastjson
|
||
valueEncoder: java
|
||
valueDecoder: java
|
||
poolConfig:
|
||
minIdle: 5
|
||
maxIdle: 20
|
||
maxTotal: 50
|
||
host: ${common.redis.host}
|
||
port: ${common.redis.port}
|
||
password: ${common.redis.password}
|
||
database: ${common.redis.database}
|
||
# 全局过期时间配置
|
||
global:
|
||
# 全局默认超时时间(毫秒)
|
||
default-expire-in: 86400000
|
||
# 全局统计间隔(毫秒)
|
||
stat-interval-millis: 60000
|
||
|
||
web:
|
||
upload:
|
||
path: /kexue/agent-skills/upload/
|