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

This commit is contained in:
ygs
2025-07-10 16:48:47 +08:00
parent 872a13f5ec
commit c5410e27fb

View File

@ -89,7 +89,21 @@ spring:
idempotent: 3 idempotent: 3
userinfo: 4 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: mybatis-plus:
configuration: configuration: