db-link-fix

This commit is contained in:
Untone 2024-01-24 11:19:42 +03:00
parent 4d9551a93c
commit 1dce947db6
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ WORKDIR /app
EXPOSE 8080 EXPOSE 8080
ADD nginx.conf.sigil ./ ADD nginx.conf.sigil ./
COPY requirements.txt . 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 RUN pip install -r requirements.txt
COPY . . COPY . .

View File

@ -6,7 +6,7 @@ DB_URL = (
environ.get("DATABASE_URL") environ.get("DATABASE_URL")
or environ.get("DB_URL") or environ.get("DB_URL")
or "postgresql://postgres@localhost:5432/discoursio" or "postgresql://postgres@localhost:5432/discoursio"
) ).replace("postgres://", "postgresql://")
JWT_ALGORITHM = "HS256" JWT_ALGORITHM = "HS256"
JWT_SECRET_KEY = environ.get("JWT_SECRET_KEY") or "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key" JWT_SECRET_KEY = environ.get("JWT_SECRET_KEY") or "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
SESSION_TOKEN_LIFE_SPAN = 30 * 24 * 60 * 60 # 1 month in seconds SESSION_TOKEN_LIFE_SPAN = 30 * 24 * 60 * 60 # 1 month in seconds