raise overall content body size, routes will implement stricter limits

This commit is contained in:
2025-12-06 10:18:32 +03:00
parent 6c96563a0e
commit 09a19b5352
3 changed files with 12 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ def create_app():
app.config["SECRET_KEY"] = os.getenv("FLASK_SECRET_KEY")
app.config['AVATAR_UPLOAD_PATH'] = 'data/static/avatars/'
app.config['MAX_CONTENT_LENGTH'] = 1000 * 1000
app.config['MAX_CONTENT_LENGTH'] = 3 * 1000 * 1000 # 3M total, subject to further limits per route
os.makedirs(os.path.dirname(app.config["DB_PATH"]), exist_ok = True)