Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update S3 syntax after updating the new version #52

Open
wants to merge 3 commits into
base: docs
Choose a base branch
from
Open
Changes from all commits
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
52 changes: 30 additions & 22 deletions docs/install/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,41 @@

**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/) 后 进入 控制面板>配置管理。

```yaml
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/` 则表示由服务器转发
进入 控制面板>配置管理。

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

若您还未注册密钥,请您登录腾讯云后 前往 [腾讯云访问密钥](https://console.cloud.tencent.com/cam/capi) 进行注册。

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

Expand Down