Add config.php at root; include configuration overhaul and then fixes to the installer #156

This commit is contained in:
Nabeel Shahzad
2018-01-29 13:16:39 -06:00
parent b1759d9276
commit f660af5c3b
17 changed files with 337 additions and 194 deletions

View File

@@ -0,0 +1,60 @@
<?php
/**
* This file overrides any of the config files in the /config directory.
* The root key is the name of the file, and then the structure within.
* The config is merged, so only include what you want to override
*/
return [
# overrides app.php
'app' => [
'name' => '$SITE_NAME$',
'url' => '$SITE_URL$',
# Don't forget to change these when live
'env' => 'dev',
'debug' => true,
],
# overrides phpvms.php
'phpvms' => [
'skin' => 'default',
'vacentral_api_key' => '',
],
# overrides cache.php
'cache' => [
'default' => '$CACHE_DRIVER$',
'prefix' => 'phpvms_',
],
# overrides database.php
'database' => [
'default' => '$DB_CONN$',
'connections' => [
'mysql' => [
'host' => '$DB_HOST$',
'port' => $DB_PORT$,
'database' => '$DB_NAME$',
'username' => '$DB_USER$',
'password' => '$DB_PASS$',
'prefix' => '$DB_PREFIX$',
],
],
],
# overrides mail.php
'mail' => [
'driver' => 'smtp',
'host' => '',
'port' => 587,
'from' => [
'name' => '',
'address' => '',
],
'username' => '',
'password' => '',
],
];

View File

@@ -0,0 +1,3 @@
<?php exit(); ?>
APP_KEY=base64:$APP_KEY$