文件上传下载功能配置 #文件服务
This commit is contained in:
@ -88,7 +88,21 @@ 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:
|
||||
|
Reference in New Issue
Block a user