2.0版本

This commit is contained in:
ageerle
2025-02-07 10:34:31 +08:00
parent 3c3ad701e3
commit c1cbfc2b93
968 changed files with 67565 additions and 1011 deletions

View File

@@ -1,7 +1,8 @@
# 项目相关配置
ruoyi:
# 名称
name: "xmzs"
name: "ruoyi"
# 版本
version: ${revision}
# 版权年份
@@ -48,7 +49,7 @@ server:
# 日志配置
logging:
level:
com.xmzs: '@logging.level@'
org.ruoyi: @logging.level@
org.springframework: warn
config: classpath:logback-plus.xml
@@ -69,14 +70,14 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: '@profiles.active@'
active: @profiles.active@
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
max-file-size: 50MB
# 设置总上传的文件大小
max-request-size: 20MB
max-request-size: 200MB
mvc:
format:
date-time: yyyy-MM-dd HH:mm:ss
@@ -117,8 +118,7 @@ sa-token:
security:
# 排除路径
excludes:
# 修改用户头像
- /system/user/edit/avatar
# 支付回调
- /pay/returnUrl
- /pay/notifyUrl
# 上传文件
@@ -160,11 +160,11 @@ tenant:
mybatis-plus:
# 不支持多包, 如有需要可在注解配置 或 提升扫包等级
# 例如 com.**.**.mapper
mapperPackage: com.xmzs.**.mapper
mapperPackage: org.ruoyi.**.mapper
# 对应的 XML 文件位置
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: com.xmzs.**.domain
typeAliasesPackage: org.ruoyi.**.domain
# 启动时是否检查 MyBatis XML 文件的存在,默认不检查
checkConfigLocation: false
configuration:
@@ -245,13 +245,13 @@ springdoc:
#这里定义了两个分组,可定义多个,也可以不定义
group-configs:
- group: 1.演示模块
packages-to-scan: com.xmzs.demo
packages-to-scan: org.ruoyi.demo
- group: 2.通用模块
packages-to-scan: com.xmzs.web
packages-to-scan: org.ruoyi.web
- group: 3.系统模块
packages-to-scan: com.xmzs.system
packages-to-scan: org.ruoyi.system
- group: 4.代码生成模块
packages-to-scan: com.xmzs.generator
packages-to-scan: org.ruoyi.generator
# 防止XSS攻击
xss:
@@ -290,9 +290,9 @@ management:
logfile:
external-file: ./logs/sys-console.log
--- # websocket
# websocket
websocket:
enabled: false
enabled: true
# 路径
path: ''
# 设置访问源地址
@@ -307,83 +307,72 @@ wx:
token: #微信小程序消息服务器配置的token
aesKey: #微信小程序消息服务器配置的EncodingAESKey
msgDataFormat: JSON
baidu:
# 是否开启文本审核
enabled: false
# 文本审核
textReview:
apiKey: '' # apiKey
secretKey: '' # secretKey
appKey: xxxxxxxxxxxxxxxxx
secretKey: xxxxxxxxxxxxxxxxxxxxxxx
wechat:
# 是否使用微信 true/false
enable: true
# 生成的登录二维码路径 默认与项目同级
qrPath: "./"
# 知识库配置
chain:
split:
chunk:
endspliter: "<STOP>"
# 分块文本大小
size: 500
overlay: 0
qaspliter: "######"
# 知识库中检索的条数
limits: 5
vectorization:
type: openai
openai:
model: 'text-embedding-3-small'
baidu:
model: bge-large-zh
zhipu:
model: embedding-2
# 智普API KEY
token: xx
vector:
store:
type: weaviate
weaviate:
protocol: http
host: 127.0.0.1:6038
classname: LocalKnowledge
milvus:
host: 127.0.0.1
port: 19530
dimension: 1536
collection: LocalKnowledge
llm:
openai:
token: sk-xx
model: gpt-4-1106-preview
chatglm:
baseurl: http://127.0.0.1:8000/
model: chatglm2-6b
baidu:
appKey: xx
secretKey: xx
model: ernie_bot
zhipu:
model: glm-4
audio:
type: openai
text:
type: openai
function:
type: baidu
vision:
type: openai
image:
type: openai
keyword:
# 重置会话指令
reset: "重置会话"
# ai画图指令(DALL·E模型 https://platform.openai.com/docs/models/dall-e)
# generation 根据关键词生成图片(https://platform.openai.com/docs/guides/images/generations)
image: "ai画图"
# ai语音指令(TTS模型 https://platform.openai.com/docs/api-reference/audio)
audio: "ai语音"
upload:
path: /data/upload
#绘画价格配置(元)
mj:
# 放大
upsample: 0.1
# 变化
change: 0.3
# 图生图
blend: 0.3
# 图生文
describe: 0.1
# 文生图
imagine: 0.3
# 局部重绘
inpaint: 0.3
# 提示词分析
shorten: 0.1
# 换脸
faceSwapping: 0.3
proxy:
socket:
host: 127.0.0.1
port: 7890
--- # mail 邮件发送
mail:
enabled: true
host: smtp.163.com
port: 465
# 是否需要用户名密码验证
auth: true
# 发送方遵循RFC-822标准
from: ageerle@163.com
# 用户名注意如果使用foxmail邮箱此处user为qq号
user: ageerle@163.com
# 密码(填写授权码)
pass: ${MAIL_PASS}
# 使用 STARTTLS安全连接STARTTLS是对纯文本通信协议的扩展。
starttlsEnable: true
# 使用SSL安全连接
sslEnable: true
# SMTP超时时长单位毫秒缺省值不超时
timeout: 0
# Socket连接超时值单位毫秒缺省值不超时
connectionTimeout: 0
resource:
domain: http://127.0.0.1:${server.port}/resources
# chatgpt和mj共用一个key
chat:
apiKey: ${CHAT_API_KEY}
apiHost: ${CHAT_API_HOST}
# 支付配置信息
pay:
pid: ${PAY_PID}
key: ${PAY_KEY}
payUrl: 'https://pay.pandarobot.chat/mapi.php'
notify_url: 'https://www.pandarobot.chat/pay/returnUrl'
return_url: 'https://www.pandarobot.chat/pay/notifyUrl'
type: 'wxpay'
device: 'pc'
sign_type: 'MD5'