feat: azure env (#45)

pull/46/head
crazywoola 2024-03-21 11:03:32 +08:00 committed by GitHub
parent c19df903d4
commit 7f086c7106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 3 deletions

View File

@ -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://<your_account_name>.blob.core.windows.net'
#### Vector Database Configuration
* VECTOR\_STORE

View File

@ -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\_KEYS3 Access Key
* S3\_SECRET\_KEYS3 Secret Key
* S3\_REGIONS3 地域信息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://<your_account_name>.blob.core.windows.net'
#### 向量数据库配置