init
This commit is contained in:
25
backend/app/config.py
Normal file
25
backend/app/config.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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"]
|
||||
|
||||
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"
|
||||
|
||||
# Netflix = 8, Horror = 27
|
||||
PROVIDER_NETFLIX = 8
|
||||
GENRE_HORROR = 27
|
||||
REGION = "DE"
|
||||
LANGUAGE = "de-DE"
|
||||
|
||||
DB_PATH = Path(os.getenv("DB_PATH", ROOT / "backend" / "horror.db"))
|
||||
STATIC_DIR = Path(__file__).resolve().parent.parent / "static"
|
||||
Reference in New Issue
Block a user