From a6ab2c71c3828063f3b53719a5e1b87cdbb6677a Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 14 Mar 2025 15:21:08 +0800 Subject: [PATCH] Refa: enlarge default max request body size. (#6088) ### What problem does this PR solve? ### Type of change - [x] Refactoring --- api/apps/__init__.py | 2 +- docker/nginx/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/apps/__init__.py b/api/apps/__init__.py index 3c13be5b3..348eb91ce 100644 --- a/api/apps/__init__.py +++ b/api/apps/__init__.py @@ -83,7 +83,7 @@ app.errorhandler(Exception)(server_error_response) app.config["SESSION_PERMANENT"] = False app.config["SESSION_TYPE"] = "filesystem" app.config["MAX_CONTENT_LENGTH"] = int( - os.environ.get("MAX_CONTENT_LENGTH", 128 * 1024 * 1024) + os.environ.get("MAX_CONTENT_LENGTH", 1024 * 1024 * 1024) ) Session(app) diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index c614bf5d9..41b99159d 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -26,7 +26,7 @@ http { keepalive_timeout 65; #gzip on; - client_max_body_size 128M; + client_max_body_size 1024M; include /etc/nginx/conf.d/ragflow.conf; }