From 7f086c71064ea3390f54e46147fa0b899bc4e11c Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:03:32 +0800 Subject: [PATCH] feat: azure env (#45) --- .../install-self-hosted/environments.md | 9 ++++++++- .../install-self-hosted/environments.md | 12 ++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/en/getting-started/install-self-hosted/environments.md b/en/getting-started/install-self-hosted/environments.md index 6f1b2a0..4028571 100644 --- a/en/getting-started/install-self-hosted/environments.md +++ b/en/getting-started/install-self-hosted/environments.md @@ -195,6 +195,10 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi * s3 S3 object storage, if this option is selected, the following S3\_ prefixed configurations need to be set. + * azure-blob + + Azure Blob object storage, if this option is selected, the following AZURE\_BLOB\_ prefixed configurations need to be set. + * STORAGE\_LOCAL\_PATH Default is storage, that is, it is stored in the storage directory of the current directory. @@ -205,7 +209,10 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi * S3\_ACCESS\_KEY: S3 Access Key * S3\_SECRET\_KEY: S3 Secret Key * S3\_REGION: S3 region information, such as: us-east-1 - +* AZURE_BLOB_ACCOUNT_NAME: your-account-name eg, 'difyai' +* AZURE_BLOB_ACCOUNT_KEY: your-account-key eg, 'difyai' +* AZURE_BLOB_CONTAINER_NAME: your-container-name eg, 'difyai-container' +* AZURE_BLOB_ACCOUNT_URL: 'https://.blob.core.windows.net' #### Vector Database Configuration * VECTOR\_STORE diff --git a/zh_CN/getting-started/install-self-hosted/environments.md b/zh_CN/getting-started/install-self-hosted/environments.md index 96fd3d7..caf51ab 100644 --- a/zh_CN/getting-started/install-self-hosted/environments.md +++ b/zh_CN/getting-started/install-self-hosted/environments.md @@ -185,12 +185,16 @@ Flask 调试模式,开启可在接口输出 trace 信息,方便调试。 存储设施类型 - * local(默认) + * local(默认) 本地文件存储,若选择此项则需要设置下方 `STORAGE_LOCAL_PATH` 配置。 - * s3 + * s3 S3 对象存储,若选择此项则需要设置下方 S3\_ 开头的配置。 + + * azure-blob + + Azure Blob 存储,若选择此项则需要设置下方 AZURE\_BLOB\_ 开头的配置。 * STORAGE\_LOCAL\_PATH 默认为 storage,即存储在当前目录的 storage 目录下。若使用 docker 或 docker-compose 进行部署,请务必将两个容器中 `/app/api/storage` 目录挂载到同一个本机目录,否则可能会出现文件找不到的报错。 @@ -199,6 +203,10 @@ Flask 调试模式,开启可在接口输出 trace 信息,方便调试。 * S3\_ACCESS\_KEY:S3 Access Key * S3\_SECRET\_KEY:S3 Secret Key * S3\_REGION:S3 地域信息,如:us-east-1 +* AZURE_BLOB_ACCOUNT_NAME: your-account-name 如 'difyai' +* AZURE_BLOB_ACCOUNT_KEY: your-account-key 如 'difyai' +* AZURE_BLOB_CONTAINER_NAME: your-container-name 如 'difyai-container' +* AZURE_BLOB_ACCOUNT_URL: 'https://.blob.core.windows.net' #### 向量数据库配置