Refa: enlarge default max request body size. (#6088)

### What problem does this PR solve?


### Type of change


- [x] Refactoring
This commit is contained in:
Kevin Hu 2025-03-14 15:21:08 +08:00 committed by GitHub
parent 5c8ad6702a
commit a6ab2c71c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;
}