forked from mtusi2026/mtusi2026lab2
Мессенджер с Postgres, Redis, Valkey
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
|
||||
|
||||
class Config:
|
||||
DATABASE_URL: str = os.getenv(
|
||||
"DATABASE_URL",
|
||||
"postgresql://messenger:messenger@localhost:5432/messenger",
|
||||
)
|
||||
SESSION_TTL_SECONDS: int = int(os.getenv("SESSION_TTL_SECONDS", "3600"))
|
||||
APP_HOST: str = os.getenv("APP_HOST", "0.0.0.0")
|
||||
APP_PORT: int = int(os.getenv("APP_PORT", "8080"))
|
||||
SESSION_STORE: str = os.getenv("SESSION_STORE", "postgres")
|
||||
CACHE_URL: str = os.getenv(
|
||||
"CACHE_URL",
|
||||
"redis://valkey:6379/0",
|
||||
)
|
||||
|
||||
|
||||
config = Config()
|
||||
Reference in New Issue
Block a user