docs: create wg-basic/minio
This commit is contained in:
parent
b5e1e13921
commit
9696f0ce03
40
wg-basic/minio.md
Normal file
40
wg-basic/minio.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
title: 11.MINIO文件管理
|
||||||
|
description: 使用文件系统管理上传文件
|
||||||
|
published: true
|
||||||
|
date: 2021-12-12T15:19:50.333Z
|
||||||
|
tags: wg-basic
|
||||||
|
editor: markdown
|
||||||
|
dateCreated: 2021-12-12T15:19:50.333Z
|
||||||
|
---
|
||||||
|
|
||||||
|
# yml配置
|
||||||
|
|
||||||
|
```yml
|
||||||
|
file:
|
||||||
|
# 启用minIo,默认为false
|
||||||
|
use-min-io: true
|
||||||
|
# 与use-min-io配套使用
|
||||||
|
min-io:
|
||||||
|
# minio服务地址
|
||||||
|
endpoint: http://127.0.0.1:9900
|
||||||
|
# 上传文件用户名,由minio服务提供
|
||||||
|
access-key: usercenter
|
||||||
|
# 上传文件密码
|
||||||
|
secret-key: aaa111!!!
|
||||||
|
```
|
||||||
|
|
||||||
|
# 说明
|
||||||
|
|
||||||
|
该功能集成与 **module-file** 模块,通过 `file.use-min-io` 配置确定是否开启
|
||||||
|
|
||||||
|
当多系统需要统一管理文件时,需要引入 **mongo-module-file** 模块
|
||||||
|
|
||||||
|
```yml
|
||||||
|
<dependency>
|
||||||
|
<groupId>ink.wgink</groupId>
|
||||||
|
<artifactId>mongo-module-file</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user