Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions docs/install/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,35 @@

**MinIO**

[安装 MinIO](https://min.io/) 后进入 控制面板>manage_config。

- `file.type`: `s3`
- `file.endPoint`: `http://127.0.0.1:9000`(即 MinIO 启动时显示的 endPoint)
- `file.accessKey`: 参照 MinIO 配置
- `file.secretKey`: 参照 MinIO 配置
- `file.bucket`: `hydro`(MinIO 内部存储桶名称)
- `file.region`: `us-east-1`
- `file.pathStyle`: true
- `file.endPointForUser`: `/fs/`
- `file.endPointForJudge`: `/fs/`
[安装 MinIO](https://min.io/) 后 进入 控制面板>配置管理。

`file:`
- `type`: `s3`
- `endPoint`: `http://127.0.0.1:9000`(即 MinIO 启动时显示的 endPoint)
- `accessKey`: 参照 MinIO 配置
- `secretKey`: 参照 MinIO 配置
- `bucket`: `hydro`(MinIO 内部存储桶名称)
- `region`: `us-east-1` MinIO 没有地域之分,瞎填即可
- `pathStyle`: true
- `endPointForUser`: `/fs/`
- `endPointForJudge`: `/fs/`

保存后重启,已有文件请自行复制。

**腾讯云COS**

进入 控制面板>系统设置>存储桶设置。

- `file.type`: `s3`
- `file.endPoint`: `http://cos.<存储桶地域>.myqcloud.com` (或是 https)
- `file.accessKey`: 您的腾讯云 API 密钥的 SecretId
- `file.secretKey`: 您的腾讯云 API 密钥的 SecretKey
- `file.bucket`: <存储桶名称>
- `file.region`: Auto
- `file.pathStyle`: true
- `file.endPointForUser`: 给用户使用的 EndPoint,若填 `/fs/` 则表示由服务器转发
- `file.endPointForJudge`: 给 judge 使用的 EndPoint,若填 `/fs/` 则表示由服务器转发
进入 控制面板>配置管理。

`file:`
- `type`: `s3`
- `endPoint`: `http://cos.<存储桶地域>.myqcloud.com` (或是 https)
- `accessKey`: 您的腾讯云 API 密钥的 SecretId
- `secretKey`: 您的腾讯云 API 密钥的 SecretKey
- `bucket`: <存储桶名称>
- `region`: Auto
- `pathStyle`: true
- `endPointForUser`: 非特殊需求请勿修改,默认 `/fs/` 服务器转发
- `endPointForJudge`: 非特殊需求请勿修改,默认 `/fs/` 服务器转发

保存后重启,已有文件请自行复制。

Expand Down