notifier/settings.py

15 lines
522 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-16 23:56:15 +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-16 23:56:15 +00:00
REDIS_URL = environ.get('REDIS_URL') or 'redis://127.0.0.1'
API_BASE = environ.get('API_BASE') or 'https://core.discours.io'
AUTH_URL = environ.get('AUTH_URL') or 'https://auth.discours.io'
MODE = environ.get('MODE') or 'production'
SENTRY_DSN = environ.get('SENTRY_DSN')
DEV_SERVER_PID_FILE_NAME = 'dev-server.pid'