Docs: update knowledge content (#724)

This commit is contained in:
AllenWriter
2025-04-15 15:30:57 +08:00
committed by GitHub
parent 8b1dfbb055
commit 8865268345
5 changed files with 19 additions and 4 deletions
@@ -466,7 +466,7 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi
- UPLOAD_FILE_SIZE_LIMIT:
Upload file size limit, default 15M.<mark>NoteAfter modifying the UPLOAD_FILE_SIZE_LIMIT, you also need to synchronously update the value of NGINX_CLIENT_MAX_BODY_SIZE; otherwise, it will not take effect, and the front-end interface will display an "Upload Failed" message in the upper right corner.</mark>
Upload file size limit, default 15M.
- UPLOAD_FILE_BATCH_LIMIT
@@ -64,6 +64,8 @@ EXPOSE_NGINX_PORT=80
EXPOSE_NGINX_SSL_PORT=443
```
For other deployment-related issues, please refer to [Local Deployment FAQ](../../learn-more/faq/install-faq.md).
### 6. How to resolve database connection errors in docker-api-1?
**Issue Details**: When accessing `http://localhost`, you may encounter an `Internal Server Error`; and the following message might appear in the `docker-api-1` logs:
@@ -78,3 +80,7 @@ FATAL: no pg_hba.conf entry for host "172.19.0.7", user "postgres", database "d
docker exec -it docker-db-1 sh -c "echo 'host all all 172.19.0.0/16 trust' >> /var/lib/postgresql/data/pgdata/pg_hba.conf"
docker-compose restart
```
### 7. How to change the file size limit for knowledge base uploads?
Modify the `UPLOAD_FILE_SIZE_LIMIT` parameter in the `.env` file to adjust the default limit. Additionally, you should also sync the `NGINX_CLIENT_MAX_BODY_SIZE` parameter value to avoid potential issues.
@@ -64,9 +64,11 @@ EXPOSE_NGINX_PORT=80
EXPOSE_NGINX_SSL_PORT=443
```
他のデプロイに関する質問は[ローカルデプロイに関する](../../learn-more/faq/install-faq.md)をご確認ください。
### 6. docker-api-1 でのデータベース接続エラーの解決方法とは?
**問題**`http://localhost`アクセス`Internal Server Error`発生し`docker-api-1`のログに以下エラーが記録される場合:
**問題の詳細**`http://localhost`アクセスする際`Internal Server Error`表示され`docker-api-1`のログに以下のようなエラーが記録される場合:
```bash
FATAL: no pg_hba.conf entry for host "172.19.0.7", user "postgres", database "dify", no encryption
@@ -79,4 +81,6 @@ docker exec -it docker-db-1 sh -c "echo 'host all all 172.19.0.0/16 trust' >> /v
docker-compose restart
```
他のデプロイに関する質問は[ローカルデプロイに関する](../../learn-more/faq/install-faq.md)をご確認ください。
### 7. ナレッジベースのファイルアップロードサイズ制限を変更するには?
`.env`ファイル内の`UPLOAD_FILE_SIZE_LIMIT`パラメータを変更して、デフォルトの制限を調整できます。同時に、潜在的な問題を避けるために`NGINX_CLIENT_MAX_BODY_SIZE`パラメータの値も更新する必要があります。
@@ -448,7 +448,8 @@ Flask 调试模式,开启可在接口输出 trace 信息,方便调试。
* UPLOAD\_FILE\_SIZE\_LIMIT
上传文件大小限制,默认 15M。<mark>Note:修改完UPLOAD_FILE_SIZE_LIMIT后还要同步修改NGINX_CLIENT_MAX_BODY_SIZE的值,才能使得生效。否则前端界面右上角会提升"上传失败"。</mark>
上传文件大小限制,默认 15M
* UPLOAD\_FILE\_BATCH\_LIMIT
每次上传文件数上限,默认 5 个。
@@ -80,3 +80,7 @@ FATAL: no pg_hba.conf entry for host "172.19.0.7", user "postgres", database "d
docker exec -it docker-db-1 sh -c "echo 'host all all 172.19.0.0/16 trust' >> /var/lib/postgresql/data/pgdata/pg_hba.conf"
docker-compose restart
```
### 7. 如何修改知识库文件上传大小限制?
请修改 `.env` 文件中的 `UPLOAD_FILE_SIZE_LIMIT` 参数默认限制,同时还需要同步修改 `NGINX_CLIENT_MAX_BODY_SIZE` 参数的值以避免潜在异常。