33 lines
1011 B
Python
33 lines
1011 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
load_dotenv(ROOT / ".env")
|
|
|
|
TMDB_TOKEN = os.environ["TMDB_TOKEN"]
|
|
MINIMAX_KEY = os.environ["MINIMAX_KEY"]
|
|
|
|
# Wer den Hostmodus einschalten darf. Einmal /?host=<schlüssel> aufrufen,
|
|
# danach steckt es in der Sitzung. Ohne Eintrag kommt niemand an die
|
|
# Hostknöpfe — auch nicht über die Tastenkombination.
|
|
HOST_SCHLUESSEL = os.getenv("HOST_SCHLUESSEL", "")
|
|
|
|
TMDB_BASE = "https://api.themoviedb.org/3"
|
|
IMAGE_BASE = "https://image.tmdb.org/t/p"
|
|
|
|
MINIMAX_URL = "https://api.minimax.io/v1/chat/completions"
|
|
MINIMAX_MODEL = "MiniMax-M3"
|
|
|
|
PROVIDER_NETFLIX = 8
|
|
|
|
# MediaMTX liefert den Live-Stream; die Adresse zeigt im Container auf den
|
|
# Dienstnamen, lokal auf localhost
|
|
MEDIAMTX_URL = os.getenv("MEDIAMTX_URL", "http://127.0.0.1:8890")
|
|
REGION = "DE"
|
|
LANGUAGE = "de-DE"
|
|
|
|
DB_PATH = Path(os.getenv("DB_PATH", ROOT / "backend" / "horror.db"))
|
|
STATIC_DIR = Path(__file__).resolve().parent.parent / "static"
|