bump to 1.4.0, lower anti-flood threshold to 5

This commit is contained in:
Username
2025-12-20 20:53:49 +01:00
parent 45712ea93f
commit 8d13f52549
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import os
from pathlib import Path from pathlib import Path
# Application version # Application version
VERSION = "1.3.0" VERSION = "1.4.0"
class Config: class Config:
@@ -71,7 +71,7 @@ class Config:
"yes", "yes",
) )
ANTIFLOOD_WINDOW = int(os.environ.get("FLASKPASTE_ANTIFLOOD_WINDOW", "60")) # seconds 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_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_MAX = int(os.environ.get("FLASKPASTE_ANTIFLOOD_MAX", "28")) # max difficulty
ANTIFLOOD_DECAY = int(os.environ.get("FLASKPASTE_ANTIFLOOD_DECAY", "30")) # seconds to decay ANTIFLOOD_DECAY = int(os.environ.get("FLASKPASTE_ANTIFLOOD_DECAY", "30")) # seconds to decay

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "flaskpaste" name = "flaskpaste"
version = "1.3.0" version = "1.4.0"
description = "Secure pastebin with mTLS authentication and E2E encryption" description = "Secure pastebin with mTLS authentication and E2E encryption"
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11"