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