diff --git a/en/getting-started/install-self-hosted/environments.md b/en/getting-started/install-self-hosted/environments.md index 4db4e7053..e7c7cf0da 100644 --- a/en/getting-started/install-self-hosted/environments.md +++ b/en/getting-started/install-self-hosted/environments.md @@ -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.Note:After 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. + Upload file size limit, default 15M. - UPLOAD_FILE_BATCH_LIMIT diff --git a/en/getting-started/install-self-hosted/faqs.md b/en/getting-started/install-self-hosted/faqs.md index cd23af442..c69c63040 100644 --- a/en/getting-started/install-self-hosted/faqs.md +++ b/en/getting-started/install-self-hosted/faqs.md @@ -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. \ No newline at end of file diff --git a/jp/getting-started/install-self-hosted/faqs.md b/jp/getting-started/install-self-hosted/faqs.md index 512ef7480..a58f94527 100644 --- a/jp/getting-started/install-self-hosted/faqs.md +++ b/jp/getting-started/install-self-hosted/faqs.md @@ -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`パラメータの値も更新する必要があります。 diff --git a/zh_CN/getting-started/install-self-hosted/environments.md b/zh_CN/getting-started/install-self-hosted/environments.md index 6256c52c8..1e2a58f06 100644 --- a/zh_CN/getting-started/install-self-hosted/environments.md +++ b/zh_CN/getting-started/install-self-hosted/environments.md @@ -448,7 +448,8 @@ Flask 调试模式,开启可在接口输出 trace 信息,方便调试。 * UPLOAD\_FILE\_SIZE\_LIMIT - 上传文件大小限制,默认 15M。Note:修改完UPLOAD_FILE_SIZE_LIMIT后还要同步修改NGINX_CLIENT_MAX_BODY_SIZE的值,才能使得生效。否则前端界面右上角会提升"上传失败"。 + 上传文件大小限制,默认 15M + * UPLOAD\_FILE\_BATCH\_LIMIT 每次上传文件数上限,默认 5 个。 diff --git a/zh_CN/getting-started/install-self-hosted/faq.md b/zh_CN/getting-started/install-self-hosted/faq.md index b6bd306f0..2511501ec 100644 --- a/zh_CN/getting-started/install-self-hosted/faq.md +++ b/zh_CN/getting-started/install-self-hosted/faq.md @@ -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` 参数的值以避免潜在异常。