create Variables for to many 418 errors when they are a hacker or bot to get blocked
Build and Push Docker Container / build-and-push (push) Successful in 2m28s

This commit is contained in:
2026-01-07 00:00:44 +01:00
parent b7ec488b44
commit e541000347
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -18,3 +18,7 @@ SECRET_KEY = os.getenv("FLASK_SECRET_KEY", "USE_ENV_das_ist_ein_geheimer_schlüs
API_GROUP = os.getenv("API_GROUP", 'NanoShare')
THE_IP_BOT_MANAGER = TheIPManager()
# Blocke IPs (Bots, Hackers)
BLOCKED_IPS_ACCESSING_TIMES = int(os.getenv("BLOCKE_IPS_AFTER_ACCESSING_HOWMANY_TIME", 5))
BLOCKED_IPS_STORED_TIMEFRAME = int(os.getenv("BLOCKE_IPS_STORE_KEYS_TIMEFRAME", 3600))