Update index.php
This commit is contained in:
@@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
// --- DB CONFIG ---
|
// --- DB CONFIG ---
|
||||||
// You can also set these as environment variables in your Docker stack
|
// You can also set these as environment variables in your Docker stack
|
||||||
$dbHost = $_ENV['DB_HOST'] ?? 'localhost';
|
$dbHost = $_ENV['DB_HOST'] ?? 'mariadb';
|
||||||
$dbName = $_ENV['DB_NAME'] ?? 'mediakor';
|
$dbName = $_ENV['DB_NAME'] ?? 'appdb';
|
||||||
$dbUser = $_ENV['DB_USER'] ?? 'mediakor';
|
$dbUser = $_ENV['DB_USER'] ?? 'appuser';
|
||||||
$dbPass = $_ENV['DB_PASS'] ?? 'mediakor_password';
|
$dbPass = $_ENV['DB_PASS'] ?? 'apppass';
|
||||||
|
|
||||||
$posts = [];
|
$posts = [];
|
||||||
$dbError = null;
|
$dbError = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user