pdnsmanager/backend/src/config/ConfigDefault.php
2018-03-23 16:37:29 +01:00

35 lines
742 B
PHP

<?php
$defaultConfig = [
'db' => [
'host' => 'localhost',
'user' => 'user',
'password' => 'password',
'dbname' => 'pdnsmanager',
'port' => 3306
],
'logging' => [
'level' => 'info',
'path' => ''
],
'sessionstorage' => [
'plugin' => 'apcu',
'timeout' => 3600,
'config' => null
],
'authentication' => [
'default' => [
'plugin' => 'native',
'config' => null
]
]
];
if (file_exists('ConfigOverride.php')) {
$userConfig = require('ConfigOverride.php');
} else {
$userConfig = require('ConfigUser.php');
}
return array('config' => array_replace_recursive($defaultConfig, $userConfig));