Реализовать ЛР 7 на оценку 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user