文件上传下载功能配置 #文件服务
This commit is contained in:
@ -81,7 +81,7 @@ spring:
|
|||||||
redis:
|
redis:
|
||||||
sentinel:
|
sentinel:
|
||||||
master: mymaster
|
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
|
password: pass
|
||||||
database:
|
database:
|
||||||
sharding: 1
|
sharding: 1
|
||||||
@ -89,21 +89,7 @@ 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:
|
||||||
|
Reference in New Issue
Block a user