lib/config.php hinzugefügt

This commit is contained in:
Fabian Schieder 2026-03-23 19:19:00 +00:00
parent af803154f5
commit b94958405f

17
lib/config.php Normal file
View File

@ -0,0 +1,17 @@
<?php
// Zentrale Konfiguration
// Hinweis: In Produktion idealerweise per Environment-Variablen setzen.
declare(strict_types=1);
return [
'db' => [
'host' => getenv('GEIZKRAGEN_DB_HOST') ?: 'localhost',
'port' => (int)(getenv('GEIZKRAGEN_DB_PORT') ?: 3306),
'user' => getenv('GEIZKRAGEN_DB_USER') ?: 'User',
'pass' => getenv('GEIZKRAGEN_DB_PASS') ?: 'password',
'name' => getenv('GEIZKRAGEN_DB_NAME') ?: 'DB-Name',
'charset' => getenv('GEIZKRAGEN_DB_CHARSET') ?: 'utf8mb4',
],
];