From a2d300809cf485887cff4a646d068f3917a0062f Mon Sep 17 00:00:00 2001 From: Hayato <79782919+HayatoOvO@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:16:23 +0800 Subject: [PATCH 1/3] Update S3 syntax after updating the new version --- docs/install/s3.md | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/docs/install/s3.md b/docs/install/s3.md index d14e8951..1f429c1b 100644 --- a/docs/install/s3.md +++ b/docs/install/s3.md @@ -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/` 服务器转发 保存后重启,已有文件请自行复制。 From c5f05e08da98248a16d6c1d9f9be5f82f8483228 Mon Sep 17 00:00:00 2001 From: Hayato <79782919+HayatoOvO@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:33:26 +0800 Subject: [PATCH 2/3] Reupdate S3 files --- docs/install/s3.md | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/docs/install/s3.md b/docs/install/s3.md index 1f429c1b..67f3496e 100644 --- a/docs/install/s3.md +++ b/docs/install/s3.md @@ -11,16 +11,18 @@ [安装 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/` +```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/ +``` 保存后重启,已有文件请自行复制。 @@ -28,16 +30,18 @@ 进入 控制面板>配置管理。 -`file:` - - `type`: `s3` - - `endPoint`: `http://cos.<存储桶地域>.myqcloud.com` (或是 https) - - `accessKey`: 您的腾讯云 API 密钥的 SecretId - - `secretKey`: 您的腾讯云 API 密钥的 SecretKey - - `bucket`: <存储桶名称> - - `region`: Auto - - `pathStyle`: true - - `endPointForUser`: 非特殊需求请勿修改,默认 `/fs/` 服务器转发 - - `endPointForJudge`: 非特殊需求请勿修改,默认 `/fs/` 服务器转发 +```yaml +file: + type: s3 + endPoint: http://cos.<存储桶地域>.myqcloud.com + accessKey: 您的腾讯云 API 密钥的 SecretId + secretKey: 您的腾讯云 API 密钥的 SecretKey + bucket`: <存储桶名称> + region: Auto + pathStyle: true + endPointForUser: /fs/ (非特殊需求请勿修改,默认 /fs/ 服务器转发) + endPointForJudge:/fs/ (非特殊需求请勿修改,默认 /fs/ 服务器转发) +``` 保存后重启,已有文件请自行复制。 From 2791b9e01b4327160c3ca9cb35cd679919e0ea90 Mon Sep 17 00:00:00 2001 From: Hayato <79782919+HayatoOvO@users.noreply.github.com> Date: Tue, 29 Nov 2022 21:33:03 +0800 Subject: [PATCH 3/3] Reupdate S3 syntax & fix Markdown syntax --- docs/install/s3.md | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/install/s3.md b/docs/install/s3.md index 67f3496e..9e92b82f 100644 --- a/docs/install/s3.md +++ b/docs/install/s3.md @@ -14,14 +14,14 @@ ```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/ + 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/ ``` 保存后重启,已有文件请自行复制。 @@ -33,16 +33,18 @@ file: ```yaml file: type: s3 - endPoint: http://cos.<存储桶地域>.myqcloud.com - accessKey: 您的腾讯云 API 密钥的 SecretId - secretKey: 您的腾讯云 API 密钥的 SecretKey - bucket`: <存储桶名称> - region: Auto - pathStyle: true - endPointForUser: /fs/ (非特殊需求请勿修改,默认 /fs/ 服务器转发) - endPointForJudge:/fs/ (非特殊需求请勿修改,默认 /fs/ 服务器转发) + 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) 进行注册。 + 保存后重启,已有文件请自行复制。 **阿里云OSS**