local dev with sqlite, exposing port 8080

This commit is contained in:
Untone 2021-08-12 10:55:35 +03:00
parent fbb8a0e93d
commit 12c3f6a006
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM python:3.8
EXPOSE 80
EXPOSE 8080
RUN /usr/local/bin/python -m pip install --upgrade pip

View File

@ -163,7 +163,7 @@ type Shout {
published: DateTime # if there is no published field - it is not published
replyTo: String # another shout
tags: [String] # actual values
topics: [String] # topic-slugs
topics: [String] # topic-slugs, order has matter
title: String
versionOf: String
visibleForRoles: [String] # role ids are strings

View File

@ -1,9 +1,9 @@
from pathlib import Path
from os import environ
PORT = 80
PORT = 8080
DB_URL = environ.get("DB_URL") or "postgresql://postgres:postgres@localhost/discours"
DB_URL = environ.get("DB_URL") or "sqlite:///database.sqlite3"
JWT_ALGORITHM = "HS256"
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds