Files
docker-daloradius/config/override-db.php
Ryan Hamilton 5de5a2bf48
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
major rewite to remove HEREDOC
2025-08-12 10:51:56 -05:00

9 lines
413 B
PHP

<?php
// ---- overrides injected at runtime ----
$configValues['CONFIG_DB_ENGINE'] = 'mysqli';
$configValues['CONFIG_DB_HOST'] = getenv('DBHOST') ?: 'db';
$configValues['CONFIG_DB_PORT'] = getenv('DBPORT') ?: '3306';
$configValues['CONFIG_DB_USER'] = getenv('DBUSER') ?: 'radius';
$configValues['CONFIG_DB_PASS'] = getenv('DBPASS') ?: '';
$configValues['CONFIG_DB_NAME'] = getenv('DBNAME') ?: 'radius';