Update index.php

This commit is contained in:
2025-11-25 23:11:04 +00:00
parent f26058c0ba
commit b63a952e5a

View File

@@ -20,10 +20,10 @@
// --- DB CONFIG ---
// You can also set these as environment variables in your Docker stack
$dbHost = $_ENV['DB_HOST'] ?? 'localhost';
$dbName = $_ENV['DB_NAME'] ?? 'mediakor';
$dbUser = $_ENV['DB_USER'] ?? 'mediakor';
$dbPass = $_ENV['DB_PASS'] ?? 'mediakor_password';
$dbHost = $_ENV['DB_HOST'] ?? 'mariadb';
$dbName = $_ENV['DB_NAME'] ?? 'appdb';
$dbUser = $_ENV['DB_USER'] ?? 'appuser';
$dbPass = $_ENV['DB_PASS'] ?? 'apppass';
$posts = [];
$dbError = null;