From 1dce947db6c739f394ef4e32d74e967314ce8a93 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 24 Jan 2024 11:19:42 +0300 Subject: [PATCH] db-link-fix --- Dockerfile | 2 +- settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index de6d7654..6b66aad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ WORKDIR /app EXPOSE 8080 ADD nginx.conf.sigil ./ COPY requirements.txt . -RUN apt update && apt install -y git gcc curl +RUN apt update && apt install -y git gcc curl postgresql RUN pip install -r requirements.txt COPY . . diff --git a/settings.py b/settings.py index 89739c80..f0432bb9 100644 --- a/settings.py +++ b/settings.py @@ -6,7 +6,7 @@ DB_URL = ( environ.get("DATABASE_URL") or environ.get("DB_URL") or "postgresql://postgres@localhost:5432/discoursio" -) +).replace("postgres://", "postgresql://") JWT_ALGORITHM = "HS256" JWT_SECRET_KEY = environ.get("JWT_SECRET_KEY") or "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key" SESSION_TOKEN_LIFE_SPAN = 30 * 24 * 60 * 60 # 1 month in seconds