Skip to content

Commit 8fbc090

Browse files
committed
docs: update external storage document
1 parent 125df13 commit 8fbc090

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

website/docs/advanced-usage/external-storage.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,25 @@ As the usage scale progresses, the user's storage cost for the Tailchat file sys
1515
## Config
1616

1717
You need to configure the environment variables as follows:
18-
- `MINIO_URL`: s3 service address
18+
- `MINIO_URL`: s3 service address, `<hostname>:<port>`, for example: `example.com:443`, not need protocol part like `https://`
1919
- `MINIO_SSL`: Whether the s3 service enables SSL verification is required for some providers. Default is `false`
2020
- `MINIO_USER`: s3 service username
2121
- `MINIO_PASS`: s3 service password
2222
- `MINIO_BUCKET_NAME`: s3 service bucket name
2323
- `MINIO_PATH_STYLE`: path mode, optional values: `VirtualHosted` or `Path`
24+
- S3 protocol has two style, `VirtualHosted` use in `<bucketname>.example.com`, and `Path` use in `example.com/<bucketname>`
2425
- `STATIC_URL`: The uploaded static path address, which is transferred by the server by default. If you want to directly connect to external storage, you need to change it to an externally accessible address
2526

2627
> For `aliyunoss`, we can refer to this document for content-related help: https://www.alibabacloud.com/help/en/oss/developer-reference/use-amazon-s3-sdks-to-access-oss
2728
29+
### Example
30+
31+
**R2**:
32+
```bash
33+
MINIO_URL=<account-id>.r2.cloudflarestorage.com:443
34+
MINIO_PATH_STYLE=Path
35+
```
36+
2837
## Data migration
2938

3039
If you are migrating from a privately deployed `minio` service to a public cloud, then you need to migrate the old data.

website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/advanced-usage/external-storage.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,25 @@ title: 外部存储
1515
## 配置
1616

1717
你需要通过环境变量配置如下:
18-
- `MINIO_URL`: s3服务地址
18+
- `MINIO_URL`: s3 服务地址,`<hostname>:<port>`,例如:`example.com:443`,不需要协议部分如 `https://`
1919
- `MINIO_SSL`: s3服务是否启用ssl验证,对于某些提供商是必须的。默认为`false`
2020
- `MINIO_USER`: s3服务用户名
2121
- `MINIO_PASS`: s3服务密码
2222
- `MINIO_BUCKET_NAME`: s3服务 bucket 名
2323
- `MINIO_PATH_STYLE`: 路径模式,可选值: `VirtualHosted``Path`
24+
- S3 协议有两种风格,`VirtualHosted` 用于 `<bucketname>.example.com``Path` 用于 `example.com/<bucketname>`
2425
- `STATIC_URL`: 上传后的静态路径地址,默认走服务器中转,如果想要走外部存储直连的话需要改为外部可访问的地址
2526

2627
> 对于 `aliyunoss` 我们可以参考该文档获得内容相关帮助: https://www.alibabacloud.com/help/en/oss/developer-reference/use-amazon-s3-sdks-to-access-oss
2728
29+
### 示例
30+
31+
**R2**:
32+
```bash
33+
MINIO_URL=<account-id>.r2.cloudflarestorage.com:443
34+
MINIO_PATH_STYLE=Path
35+
```
36+
2837
## 数据迁移
2938

3039
如果你是从私有化部署的 `minio` 服务迁移到公有云上,那么你需要对旧的数据进行迁移。

0 commit comments

Comments
 (0)