use postgresql

This commit is contained in:
knst-kotov
2021-07-26 08:50:33 +00:00
parent 9648870f39
commit a872ebdf31
5 changed files with 21 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ from os import environ
PORT = 80
SQLITE_URI = Path(__file__).parent / "database.sqlite3"
DB_URI = environ.get("DB_URI") or "postgresql://postgres:postgres@localhost/discours"
JWT_ALGORITHM = "HS256"
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds