Add config.php at root; include configuration overhaul and then fixes to the installer #156
This commit is contained in:
@@ -1,28 +1,42 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/**
|
||||
* DO NOT EDIT THIS OR ANY OF THE CONFIG FILES DIRECTLY
|
||||
*
|
||||
* Set your override options in the config.php file that's in the root of
|
||||
* your install. Otherwise, any changes here will get overridden in an update!
|
||||
*/
|
||||
|
||||
'name' => env('PHPVMS_VA_NAME', 'phpvms'),
|
||||
'env' => env('APP_ENV', 'dev'),
|
||||
'debug' => env('APP_DEBUG', true),
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
'version' => '7.0',
|
||||
return [
|
||||
'name' => 'phpVMS',
|
||||
'env' => 'dev',
|
||||
'debug' => true,
|
||||
'url' => 'http://localhost',
|
||||
'version' => '7.0.0',
|
||||
|
||||
'locale' => 'en',
|
||||
'fallback_locale' => 'en',
|
||||
|
||||
'log' => 'daily',
|
||||
'log_level' => 'debug',
|
||||
'log_max_files' => 7,
|
||||
|
||||
# This sends install and vaCentral specific information to help with
|
||||
# optimizations and figuring out where slowdowns might be happening
|
||||
'analytics' => true,
|
||||
|
||||
#
|
||||
# Anything below here won't need changing and could break things
|
||||
#
|
||||
|
||||
# DON'T CHANGE THIS OR ELSE YOUR TIMES WILL BE MESSED UP!
|
||||
'timezone' => 'UTC',
|
||||
|
||||
'locale' => env('APP_LOCALE', 'en'),
|
||||
'fallback_locale' => 'en',
|
||||
|
||||
# Is the default key cipher. Needs to be changed, otherwise phpVMS will think
|
||||
# that it isn't installed. Doubles as a security feature, so keys are scrambled
|
||||
'key' => env('APP_KEY', 'base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY='),
|
||||
'cipher' => 'AES-256-CBC',
|
||||
|
||||
'log' => env('APP_LOG', 'daily'),
|
||||
'log_level' => env('APP_LOG_LEVEL', 'debug'),
|
||||
'log_max_files' => env('APP_LOG_MAX_FILES', 7),
|
||||
|
||||
'providers' => [
|
||||
|
||||
/*
|
||||
|
||||
@@ -2,24 +2,24 @@
|
||||
|
||||
return [
|
||||
'fetch' => PDO::FETCH_ASSOC,
|
||||
'default' => env('DB_CONNECTION', 'mysql'),
|
||||
'default' => 'mysql',
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', ''),
|
||||
'username' => env('DB_USERNAME', ''),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 3306,
|
||||
'database' => '',
|
||||
'username' => '',
|
||||
'password' => '',
|
||||
//'unix_socket' => env('DB_SOCKET', ''),
|
||||
'prefix' => env('DB_PREFIX', ''),
|
||||
'prefix' => '',
|
||||
'timezone' => '+00:00',
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'strict' => false,
|
||||
'engine' => null,
|
||||
'options' => [
|
||||
PDO::ATTR_EMULATE_PREPARES => env('DB_EMULATE_PREPARES', false),
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
#PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
],
|
||||
],
|
||||
@@ -48,10 +48,10 @@ return [
|
||||
'redis' => [
|
||||
'cluster' => false,
|
||||
'default' => [
|
||||
'host' => env('REDIS_HOST', 'localhost'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => env('REDIS_DATABASE', 1),
|
||||
'host' => 'localhost',
|
||||
'password' => null,
|
||||
'port' => 6379,
|
||||
'database' => 1,
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
@@ -4,7 +4,7 @@ return [
|
||||
'tracking_id' => 'UA-100567975-1',
|
||||
'protocol_version' => 1,
|
||||
'is_ssl' => false,
|
||||
'is_disabled' => env('APP_ANALYTICS_DISABLED', false),
|
||||
'is_disabled' => false,
|
||||
'anonymize_ip' => false,
|
||||
'async_requests' => false,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user