Реализовать ЛР 7 на оценку 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-04 16:15:18 +03:00
parent 7996ebbb48
commit 94a8a5c1da
29 changed files with 918 additions and 85 deletions
+2
View File
@@ -22,6 +22,7 @@ class Settings:
database_url: str
redis_url: str
session_ttl_seconds: int
login_concurrency: int
login_limit: int
login_window_seconds: int
s3_endpoint: str
@@ -78,6 +79,7 @@ def load_settings() -> Settings:
database_url=credential('DATABASE_URL', 'DATABASE_URL_FILE'),
redis_url=credential('REDIS_URL', 'CACHE_URL_FILE'),
session_ttl_seconds=_positive_int('SESSION_TTL_SECONDS', '3600'),
login_concurrency=_positive_int('LOGIN_CONCURRENCY', '2'),
login_limit=_positive_int('LOGIN_LIMIT', '20'),
login_window_seconds=_positive_int('LOGIN_WINDOW_SECONDS', '60'),
s3_endpoint=os.getenv('S3_ENDPOINT', 'http://s3:9000'),