refactor: 用 RustFS S3 替代 MinIO 并优化 OSS endpoint 协议处理
This commit is contained in:
1 parent
7ecbc16b69
commit
6da8ea0fca
9 files changed
+270
-195
No files matched your search
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "file-storage.type",
|
||||
"type": "java.lang.String",
|
||||
"description": "文件存储类型:minio | aliyun | local"
|
||||
"description": "文件存储类型:rustfs | aliyun | local"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.upload.max-file-size",
|
||||
@@ -16,29 +16,29 @@
|
||||
"description": "允许的文件扩展名白名单(置空表示不限制)"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.minio.endpoint",
|
||||
"name": "file-storage.rustfs.endpoint",
|
||||
"type": "java.lang.String",
|
||||
"description": "MinIO 服务 Endpoint"
|
||||
"description": "RustFS(S3) 服务 Endpoint"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.minio.access-key",
|
||||
"name": "file-storage.rustfs.access-key",
|
||||
"type": "java.lang.String",
|
||||
"description": "MinIO 访问凭据"
|
||||
"description": "RustFS 访问凭据"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.minio.secret-key",
|
||||
"name": "file-storage.rustfs.secret-key",
|
||||
"type": "java.lang.String",
|
||||
"description": "MinIO 凭据密钥"
|
||||
"description": "RustFS 凭据密钥"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.minio.bucket",
|
||||
"name": "file-storage.rustfs.bucket",
|
||||
"type": "java.lang.String",
|
||||
"description": "MinIO 存储桶名称"
|
||||
"description": "RustFS 存储桶名称"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.minio.domain",
|
||||
"name": "file-storage.rustfs.domain",
|
||||
"type": "java.lang.String",
|
||||
"description": "MinIO 自定义域名(文件 URL 域名)"
|
||||
"description": "RustFS 自定义域名(文件 URL 域名)"
|
||||
},
|
||||
{
|
||||
"name": "file-storage.aliyun.endpoint",
|
||||
|
||||
@@ -108,8 +108,8 @@ security:
|
||||
|
||||
# 文件存储
|
||||
file-storage:
|
||||
# 存储类型:minio | aliyun | local
|
||||
type: minio
|
||||
# 存储类型:rustfs | aliyun | local
|
||||
type: rustfs
|
||||
# 上传限制
|
||||
upload:
|
||||
# 单文件大小上限(同时作为 spring.servlet.multipart 的上限,单一来源)
|
||||
@@ -120,8 +120,8 @@ file-storage:
|
||||
- jpeg
|
||||
- png
|
||||
- gif
|
||||
# MinIO 对象存储
|
||||
minio:
|
||||
# RustFS(S3) 对象存储
|
||||
rustfs:
|
||||
endpoint: http://111.229.83.153:9000
|
||||
access-key: bybaddp7zyARpgNbEGKf
|
||||
secret-key: p9rBdQZPBIJcMH23iyFkZkXmmawbmwPlk3JLlaaj
|
||||
|
||||
@@ -107,8 +107,8 @@ security:
|
||||
|
||||
# 文件存储
|
||||
file-storage:
|
||||
# 存储类型:minio | aliyun | local
|
||||
type: minio
|
||||
# 存储类型:rustfs | aliyun | local
|
||||
type: rustfs
|
||||
# 上传限制
|
||||
upload:
|
||||
# 单文件大小上限(同时作为 spring.servlet.multipart 的上限,单一来源)
|
||||
@@ -119,11 +119,11 @@ file-storage:
|
||||
- jpeg
|
||||
- png
|
||||
- gif
|
||||
# MinIO 对象存储
|
||||
minio:
|
||||
# RustFS(S3) 对象存储
|
||||
rustfs:
|
||||
endpoint: http://localhost:9000
|
||||
access-key: minioadmin
|
||||
secret-key: minioadmin
|
||||
access-key: rustfs-admin
|
||||
secret-key: rustfs-admin
|
||||
bucket: public
|
||||
# 自定义域名:配置后文件 URL 走域名,留空则用 endpoint(IP)格式
|
||||
domain:
|
||||
|
||||
Reference in new issue
Block a user