v0.0.62: лимиты 50МБ/файл, 500МБ/сессия (фронт+бэк), лимиты в UI
Deploy drhider / validate (push) Canceled after 0s

This commit is contained in:
“Naeel”
2026-08-24 08:22:54 +03:00
parent 2fd4afa907
commit 0dc5d8673d
5 changed files with 70 additions and 10 deletions
+3 -2
View File
@@ -21,8 +21,9 @@ from typing import Dict, List, Tuple, Optional
TTL_SECONDS = 30 * 60 # 30 минут
# Максимальный суммарный объём файлов в одной сессии (защита памяти)
MAX_SESSION_BYTES = 500 * 1024 * 1024 # 500 MB
# Максимальный объём одного файла и суммарный объём файлов в сессии (защита памяти)
MAX_FILE_BYTES = 50 * 1024 * 1024 # 50 MB на один файл
MAX_SESSION_BYTES = 500 * 1024 * 1024 # 500 MB суммарно на сессию
_sessions: Dict[str, dict] = {}
_lock = threading.Lock()