文件上传下载功能 配置 #自定义 kafka 配置 #文件块存储路径
This commit is contained in:
@ -13,7 +13,7 @@ spring:
|
||||
writeTimeout: 35000
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.110.109:8848
|
||||
server-addr: 127.0.0.1:8848 #192.168.110.109:8848
|
||||
aop:
|
||||
auto: true #开启spring的aop配置
|
||||
proxy-target-class: true
|
||||
@ -80,7 +80,7 @@ spring:
|
||||
redis:
|
||||
sentinel:
|
||||
master: mymaster
|
||||
nodes: 10.60.161.59:26379, 10.60.161.59:26380, 10.60.161.59:26381
|
||||
nodes: 192.168.110.231:26379 #10.60.161.59:26379, 10.60.161.59:26380, 10.60.161.59:26381
|
||||
password: pass
|
||||
database:
|
||||
sharding: 1
|
||||
@ -89,7 +89,7 @@ spring:
|
||||
userinfo: 4
|
||||
|
||||
unifast:
|
||||
#文件服务
|
||||
#文件服务
|
||||
storage:
|
||||
exeFormat: exe,sys,com #可执行文件格式不许上传
|
||||
allowFilesFormat: doc,docx,xls,xlsx,ppt,pptx,jpg,png,gif,bmp,jpeg,txt,mp3,mp4,mkv #允许上传文件的格式
|
||||
@ -100,10 +100,25 @@ unifast:
|
||||
type: local # local, sftp, fastdfs, ceph -> 存储类型
|
||||
#ceph配置
|
||||
access-key: nlC38UGdiuRVeUUfWExq #访问凭证
|
||||
secret-key: GFVPUGSCCqUIPBMS4ohKf7odfyLSTl8hUvhJlMsO #访问凭证
|
||||
secret-key: 5RCE4DYEygav2oVaroeslgh4oWe5BrTqo49EYzDy #访问凭证
|
||||
endpoint: http://192.168.110.231:9000 #对象网关地址
|
||||
bucket-name: cosco #Bucket名称
|
||||
|
||||
# 自定义 kafka 配置
|
||||
kafka:
|
||||
topic:
|
||||
# 发送topic
|
||||
request-topic: jl_demo
|
||||
# 反馈topic
|
||||
request-reply-topic: jl_echo
|
||||
# 最大重试次数
|
||||
retry-limit: 2
|
||||
# 回声超时时长 (单位: 秒)
|
||||
reply-timeout: 5
|
||||
# 回执订阅组
|
||||
group-id: request-replay-group
|
||||
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
# 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射
|
||||
@ -215,6 +230,16 @@ mall:
|
||||
serviceId: core-service-document-center
|
||||
core_service_expert:
|
||||
serviceId: mall-expe
|
||||
# 文件块存储路径
|
||||
upload-path: /storage/uploads/
|
||||
# 文件合并设置
|
||||
merge:
|
||||
target: /storage/files/
|
||||
# chunks文件块持久化介质
|
||||
chunk:
|
||||
storage:
|
||||
medium: disk
|
||||
|
||||
|
||||
# 任务调度生成token配置
|
||||
job:
|
||||
|
Reference in New Issue
Block a user