From 8fba5c4179149c30a7f4bcc88191ff909506def0 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Mon, 2 Dec 2024 14:37:37 +0800 Subject: [PATCH] Update document: how upload file large than 128MB (#3791) ### What problem does this PR solve? As title. ### Type of change - [x] Documentation Update --------- Signed-off-by: Jin Hai Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com> --- docker/README.md | 4 ++-- docs/references/faq.md | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docker/README.md b/docker/README.md index da51bbf6..1813d2f5 100644 --- a/docker/README.md +++ b/docker/README.md @@ -115,12 +115,12 @@ The [.env](./.env) file contains important environment variables for Docker. ### MacOS - `MACOS` - Optimizations for MacOS. It is disabled by default. You can uncomment this line if your OS is MacOS. + Optimizations for macOS. It is disabled by default. You can uncomment this line if your OS is macOS. ### Maximum file size - `MAX_CONTENT_LENGTH` - The maximum file size for each uploaded file, in bytes. You can uncomment this line if you wish to change the 128M file size limit. + The maximum file size for each uploaded file, in bytes. You can uncomment this line if you wish to change the 128M file size limit. Please also update `client_max_body_size` in nginx/nginx.conf correspondingly. ## 🐋 Service configuration diff --git a/docs/references/faq.md b/docs/references/faq.md index 7f7d7530..60d38280 100644 --- a/docs/references/faq.md +++ b/docs/references/faq.md @@ -331,14 +331,13 @@ Ensure that you update the **MAX_CONTENT_LENGTH** environment variable: 1. In **ragflow/docker/.env**, uncomment environment variable `MAX_CONTENT_LENGTH`: ``` - MAX_CONTENT_LENGTH=128000000 + MAX_CONTENT_LENGTH=176160768 # 168MB ``` -2. Update **docker-compose.yml**: +2. Update **ragflow/docker/nginx/nginx.conf**: ``` - environment: - - MAX_CONTENT_LENGTH=${MAX_CONTENT_LENGTH} + client_max_body_size 168M ``` 3. Restart the RAGFlow server: