Commit
·
3343a14
1
Parent(s):
7449fd0
Update document: how upload file large than 128MB (#3791)
Browse files### What problem does this PR solve?
As title.
### Type of change
- [x] Documentation Update
---------
Signed-off-by: Jin Hai <[email protected]>
Co-authored-by: writinwaters <[email protected]>
- docker/README.md +2 -2
- docs/references/faq.md +3 -4
docker/README.md
CHANGED
|
@@ -115,12 +115,12 @@ The [.env](./.env) file contains important environment variables for Docker.
|
|
| 115 |
### MacOS
|
| 116 |
|
| 117 |
- `MACOS`
|
| 118 |
-
Optimizations for
|
| 119 |
|
| 120 |
### Maximum file size
|
| 121 |
|
| 122 |
- `MAX_CONTENT_LENGTH`
|
| 123 |
-
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.
|
| 124 |
|
| 125 |
## 🐋 Service configuration
|
| 126 |
|
|
|
|
| 115 |
### MacOS
|
| 116 |
|
| 117 |
- `MACOS`
|
| 118 |
+
Optimizations for macOS. It is disabled by default. You can uncomment this line if your OS is macOS.
|
| 119 |
|
| 120 |
### Maximum file size
|
| 121 |
|
| 122 |
- `MAX_CONTENT_LENGTH`
|
| 123 |
+
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.
|
| 124 |
|
| 125 |
## 🐋 Service configuration
|
| 126 |
|
docs/references/faq.md
CHANGED
|
@@ -331,14 +331,13 @@ Ensure that you update the **MAX_CONTENT_LENGTH** environment variable:
|
|
| 331 |
1. In **ragflow/docker/.env**, uncomment environment variable `MAX_CONTENT_LENGTH`:
|
| 332 |
|
| 333 |
```
|
| 334 |
-
MAX_CONTENT_LENGTH=
|
| 335 |
```
|
| 336 |
|
| 337 |
-
2. Update **docker
|
| 338 |
|
| 339 |
```
|
| 340 |
-
|
| 341 |
-
- MAX_CONTENT_LENGTH=${MAX_CONTENT_LENGTH}
|
| 342 |
```
|
| 343 |
|
| 344 |
3. Restart the RAGFlow server:
|
|
|
|
| 331 |
1. In **ragflow/docker/.env**, uncomment environment variable `MAX_CONTENT_LENGTH`:
|
| 332 |
|
| 333 |
```
|
| 334 |
+
MAX_CONTENT_LENGTH=176160768 # 168MB
|
| 335 |
```
|
| 336 |
|
| 337 |
+
2. Update **ragflow/docker/nginx/nginx.conf**:
|
| 338 |
|
| 339 |
```
|
| 340 |
+
client_max_body_size 168M
|
|
|
|
| 341 |
```
|
| 342 |
|
| 343 |
3. Restart the RAGFlow server:
|