2023-02-16 15:28:15 +08:00

73 lines
3.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#spring:
# file-storage: #文件存储配置,不使用的情况下可以不写
# default-platform: minio-1 #默认使用的存储平台
# thumbnail-suffix: ".min.jpg" #缩略图后缀,例如【.min.jpg】【.png】
# local: # 本地存储
# - platform: local-1 # 存储平台标识
# enable-storage: true #启用存储
# enable-access: true #启用访问(线上请使用 Nginx 配置,效率更高)
# domain: "" # 访问域名例如“http://127.0.0.1:8030/test/file/”,注意后面要和 path-patterns 保持一致,“/”结尾,本地存储建议使用相对路径,方便后期更换域名
# base-path: D:/Temp/test/ # 存储地址
# path-patterns: /test/file/** # 访问路径,开启 enable-access 后,通过此路径可以访问到上传的文件
# huawei-obs: # 华为云 OBS ,不使用的情况下可以不写
# - platform: huawei-obs-1 # 存储平台标识
# enable-storage: false # 启用存储
# access-key: ??
# secret-key: ??
# end-point: ??
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如http://abc.obs.com/
# base-path: hy/ # 基础路径
# aliyun-oss: # 阿里云 OSS ,不使用的情况下可以不写
# - platform: aliyun-oss-1 # 存储平台标识
# enable-storage: false # 启用存储
# access-key: ??
# secret-key: ??
# end-point: ??
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如https://abc.oss-cn-shanghai.aliyuncs.com/
# base-path: hy/ # 基础路径
# qiniu-kodo: # 七牛云 kodo ,不使用的情况下可以不写
# - platform: qiniu-kodo-1 # 存储平台标识
# enable-storage: false # 启用存储
# access-key: ??
# secret-key: ??
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如http://abc.hn-bkt.clouddn.com/
# base-path: base/ # 基础路径
# tencent-cos: # 腾讯云 COS
# - platform: tencent-cos-1 # 存储平台标识
# enable-storage: true # 启用存储
# secret-id: ??
# secret-key: ??
# region: ?? #存仓库所在地域
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如https://abc.cos.ap-nanjing.myqcloud.com/
# base-path: hy/ # 基础路径
# baidu-bos: # 百度云 BOS
# - platform: baidu-bos-1 # 存储平台标识
# enable-storage: true # 启用存储
# access-key: ??
# secret-key: ??
# end-point: ?? # 例如 abc.fsh.bcebos.com
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如https://abc.fsh.bcebos.com/abc/
# base-path: hy/ # 基础路径
# upyun-uss: # 又拍云 USS
# - platform: upyun-uss-1 # 存储平台标识
# enable-storage: true # 启用存储
# username: ??
# password: ??
# bucket-name: ??
# domain: ?? # 访问域名,注意“/”结尾例如http://abc.test.upcdn.net/
# base-path: hy/ # 基础路径
# minio: # MinIO
# - platform: minio-1 # 存储平台标识
# enable-storage: true # 启用存储
# access-key: RIKKMFW24ECefhba
# secret-key: DN5SzPCqQiOsRiWX4F4HRuZjEYjPrr6b
# end-point: http://127.0.0.1:9000 # MINIO服务器地址 例如http://127.0.0.1:9000
# bucket-name: test #桶的名字
# domain: http://127.0.0.1:9000/test/ #文件访问地址 用你的服务器地址+桶名字 例如http://127.0.0.1:9000/test/
# base-path: # 文件名称前缀