notifier/settings.py

17 lines
538 B
Python
Raw Normal View History

2023-11-23 22:58:55 +00:00
from os import environ
2024-02-16 23:56:15 +00:00
2024-02-15 13:00:35 +00:00
PORT = 8000
2023-11-24 02:29:48 +00:00
DB_URL = (
2024-02-17 20:17:12 +00:00
environ.get("DATABASE_URL", environ.get("DB_URL", "")).replace(
"postgres://", "postgresql://"
)
or "postgresql://postgres@localhost:5432/discoursio"
2023-11-24 02:29:48 +00:00
)
2024-02-17 20:17:12 +00:00
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"
API_BASE = environ.get("API_BASE") or "http://localgost:8001"
AUTH_URL = environ.get("AUTH_URL") or "http://localhost:8080/graphql"
MODE = environ.get("MODE") or "production"
SENTRY_DSN = environ.get("SENTRY_DSN")
DEV_SERVER_PID_FILE_NAME = "dev-server.pid"