feat(文件中心):冷热数据切换访问文件资源功能增加
This commit is contained in:
@@ -1,56 +1,64 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://${zlt.datasource.ip}/file-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
||||
username: ${zlt.datasource.username}
|
||||
password: ${zlt.datasource.password}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.central.common.model
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: INPUT
|
||||
|
||||
springdoc:
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: com.central.file.controller
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
swagger-model-name: 文件中心接口文档
|
||||
|
||||
zlt:
|
||||
file-server:
|
||||
type: oss
|
||||
#fdfs:
|
||||
# web-url: ${zlt.fdfs.web-url}
|
||||
s3:
|
||||
access-key: ${zlt.s3.access-key}
|
||||
accessKeySecret: ${zlt.s3.accessKeySecret}
|
||||
endpoint: ${zlt.s3.endpoint}
|
||||
bucketName: ${zlt.s3.bucketName}
|
||||
cos:
|
||||
secretId: ${zlt.cos.secretId}
|
||||
secretKey: ${zlt.cos.secretKey}
|
||||
endpoint: ${zlt.cos.endpoint}
|
||||
region: ${zlt.cos.region}
|
||||
bucketName: ${zlt.cos.bucketName}
|
||||
oss:
|
||||
secretId: ${zlt.oss.secretId}
|
||||
secretKey: ${zlt.oss.secretKey}
|
||||
endpoint: ${zlt.oss.endpoint}
|
||||
bucketName: ${zlt.oss.bucketName}
|
||||
#多租户配置
|
||||
tenant:
|
||||
enable: false
|
||||
|
||||
#fastDFS配置
|
||||
#fdfs:
|
||||
# soTimeout: 1500
|
||||
# connectTimeout: 600
|
||||
# trackerList: ${zlt.fdfs.trackerList}
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://${zlt.datasource.ip}/file-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
||||
username: ${zlt.datasource.username}
|
||||
password: ${zlt.datasource.password}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.central.common.model
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: INPUT
|
||||
|
||||
springdoc:
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: com.central.file.controller
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
swagger-model-name: 文件中心接口文档
|
||||
|
||||
zlt:
|
||||
file-server:
|
||||
type: oss # 主存储类型(用于文件上传)
|
||||
s3:
|
||||
enabled: true # 启用S3服务(用于冷数据存储)
|
||||
access-key: ${zlt.s3.access-key}
|
||||
accessKeySecret: ${zlt.s3.accessKeySecret}
|
||||
endpoint: ${zlt.s3.endpoint}
|
||||
bucketName: ${zlt.s3.bucketName}
|
||||
region: ${zlt.s3.region:us-east-1}
|
||||
cos:
|
||||
secretId: ${zlt.cos.secretId}
|
||||
secretKey: ${zlt.cos.secretKey}
|
||||
endpoint: ${zlt.cos.endpoint}
|
||||
region: ${zlt.cos.region}
|
||||
bucketName: ${zlt.cos.bucketName}
|
||||
oss:
|
||||
secretId: ${zlt.oss.secretId}
|
||||
secretKey: ${zlt.oss.secretKey}
|
||||
endpoint: ${zlt.oss.endpoint}
|
||||
bucketName: ${zlt.oss.bucketName}
|
||||
# 时间窗口存储配置
|
||||
storage:
|
||||
enable-time-window: true # 启用时间窗口智能存储
|
||||
hot-data-days: 30 # 热数据保留天数
|
||||
migration:
|
||||
enable-verification: true # 启用迁移验证
|
||||
delete-source: false # 迁移后是否删除源文件
|
||||
batch-size: 100 # 迁移批次大小
|
||||
#多租户配置
|
||||
tenant:
|
||||
enable: false
|
||||
|
||||
#fastDFS配置
|
||||
#fdfs:
|
||||
# soTimeout: 1500
|
||||
# connectTimeout: 600
|
||||
# trackerList: ${zlt.fdfs.trackerList}
|
||||
|
||||
Reference in New Issue
Block a user