This commit is contained in:
@@ -62,8 +62,6 @@ class NFOGuardConfig:
|
||||
# Database
|
||||
self.db_type = os.environ.get("DB_TYPE", "sqlite").lower()
|
||||
self.db_path = Path(os.environ.get("DB_PATH", "/app/data/media_dates.db"))
|
||||
print(f"DEBUG: DB_TYPE environment variable: {os.environ.get('DB_TYPE', 'NOT_SET')}")
|
||||
print(f"DEBUG: Configured db_type: {self.db_type}")
|
||||
|
||||
# PostgreSQL database settings
|
||||
if self.db_type == "postgresql":
|
||||
@@ -72,9 +70,6 @@ class NFOGuardConfig:
|
||||
self.db_name = os.environ.get("DB_NAME", "nfoguard")
|
||||
self.db_user = os.environ.get("DB_USER", "nfoguard")
|
||||
self.db_password = os.environ.get("DB_PASSWORD", "")
|
||||
print(f"DEBUG: PostgreSQL config - host={self.db_host}, port={self.db_port}, db={self.db_name}, user={self.db_user}")
|
||||
else:
|
||||
print(f"DEBUG: Using SQLite config - path={self.db_path}")
|
||||
|
||||
# External connections
|
||||
self._load_external_connections()
|
||||
|
||||
Reference in New Issue
Block a user