文件上传下载功能配置 #文件服务

This commit is contained in:
ygs
2025-07-10 16:50:22 +08:00
parent c5410e27fb
commit 85d239aebf

View File

@ -81,7 +81,7 @@ spring:
redis:
sentinel:
master: mymaster
nodes: 192.168.110.231:26379 #, 192.168.110.231:26380, 192.168.110.231:26381
nodes: 10.60.161.59:26379, 10.60.161.59:26380, 10.60.161.59:26381
password: pass
database:
sharding: 1
@ -89,21 +89,7 @@ spring:
idempotent: 3
userinfo: 4
unifast:
#文件服务
storage:
exeFormat: exe,sys,com #可执行文件格式不许上传
allowFilesFormat: doc,docx,xls,xlsx,ppt,pptx,jpg,png,gif,bmp,jpeg,txt,mp3,mp4,mkv #允许上传文件的格式
docFormat: doc,docx,xls,xlsx,ppt,pptx #在线预览文档格式
pictFormat: jpg,png,gif,bmp,jpeg,txt #在线预览图片、txt等格式
audioFormat: mp3 #在线预览音频格式
videoFormat: mp4,mkv #在线预览视频格式
type: local # local, sftp, fastdfs, ceph -> 存储类型
#ceph配置
access-key: nlC38UGdiuRVeUUfWExq #访问凭证
secret-key: GFVPUGSCCqUIPBMS4ohKf7odfyLSTl8hUvhJlMsO #访问凭证
endpoint: http://192.168.110.231:9000 #对象网关地址
bucket-name: cosco #Bucket名称
mybatis-plus:
configuration: