ЛР 2: PostgreSQL, сессии и Bearer-аутентификация (оценка 3)
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Яковлев Матвей Дмитриевич
2026-11-16 23:16:10 +01:00
parent 65003b6119
commit 975b46b8d2
15 changed files with 1035 additions and 21 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Local entry point: python -m app"""
import os
import uvicorn
if __name__ == "__main__":
uvicorn.run(
"app.main:app",
host=os.environ.get("APP_HOST", "0.0.0.0"),
port=int(os.environ.get("APP_PORT", "8080")),
workers=1, # in-process ordering/cursors; PostgreSQL is the shared source of truth
log_level=os.environ.get("LOG_LEVEL", "info"),
)