lean/skeleton/meta/config.php
Dave Mc Nicoll 01bb926ca7 - Added a new Email defintion (which will soon see it's components changed)
- Added a new post-install script for composer which adds a project skeleton "ready to use".
- Error 500 are now handled properly in production; waiting to see if adjustements will be required before adding other code pages.
2021-03-01 16:01:27 +00:00

41 lines
1.0 KiB
PHP

<?php
return [
'lean' => [
'autoload' => [
'lean.default',
getenv('DEBUG') ? 'lean.console' : null,
'%APPKEY%',
],
],
'keys' => (function() {
foreach(explode(',', getenv('KEYS') ?? "") as $item) {
list($var, $value) = explode(":", trim($item));
$list[$var] = $value;
}
return $list;
})(),
'meta' => [
'application_name' => "",
],
'ulmus' => [
'connections' => [
'default' => [
'adapter' => getenv("DATABASE_ADAPTER"),
'host' => getenv("DATABASE_HOST"),
'port' => getenv("DATABASE_PORT"),
'database' => getenv("DATABASE_NAME"),
'username' => getenv("DATABASE_USERNAME"),
'password' => getenv("DATABASE_PASSWORD"),
'settings' => [
'charset' => getenv("DATABASE_CHARSET"),
],
],
]
]
];