From 8d13f5254981ce6527a4f2713b438b0db26a03cc Mon Sep 17 00:00:00 2001 From: Username Date: Sat, 20 Dec 2025 20:53:49 +0100 Subject: [PATCH] bump to 1.4.0, lower anti-flood threshold to 5 --- app/config.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config.py b/app/config.py index 31fb2d7..d2a2ae5 100644 --- a/app/config.py +++ b/app/config.py @@ -4,7 +4,7 @@ import os from pathlib import Path # Application version -VERSION = "1.3.0" +VERSION = "1.4.0" class Config: @@ -71,7 +71,7 @@ class Config: "yes", ) ANTIFLOOD_WINDOW = int(os.environ.get("FLASKPASTE_ANTIFLOOD_WINDOW", "60")) # seconds - ANTIFLOOD_THRESHOLD = int(os.environ.get("FLASKPASTE_ANTIFLOOD_THRESHOLD", "30")) # req/window + ANTIFLOOD_THRESHOLD = int(os.environ.get("FLASKPASTE_ANTIFLOOD_THRESHOLD", "5")) # req/window ANTIFLOOD_STEP = int(os.environ.get("FLASKPASTE_ANTIFLOOD_STEP", "2")) # bits per step ANTIFLOOD_MAX = int(os.environ.get("FLASKPASTE_ANTIFLOOD_MAX", "28")) # max difficulty ANTIFLOOD_DECAY = int(os.environ.get("FLASKPASTE_ANTIFLOOD_DECAY", "30")) # seconds to decay diff --git a/pyproject.toml b/pyproject.toml index 1ca5950..534682d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "flaskpaste" -version = "1.3.0" +version = "1.4.0" description = "Secure pastebin with mTLS authentication and E2E encryption" readme = "README.md" requires-python = ">=3.11"