update code structure and get session on each query
All checks were successful
Build Docker Image / build (push) Successful in 12m54s

This commit is contained in:
ksyasuda
2025-02-09 20:20:10 -08:00
parent 410a7c92d9
commit af0d958b89
14 changed files with 234 additions and 234 deletions

9
app/config.py Normal file
View File

@@ -0,0 +1,9 @@
import os
class Config:
LISTEN_ADDRESS = os.getenv("LISTEN_ADDRESS", "0.0.0.0")
LISTEN_PORT = int(os.getenv("LISTEN_PORT", "8080"))
DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./mpv.db")
MPV_SOCKET = os.getenv("MPV_SOCKET", "/tmp/mpvsocket")
LOGLEVEL = os.getenv("LOGLEVEL", "INFO").strip().upper()