config
This commit is contained in:
9
app_old/config/app.php
Normal file
9
app_old/config/app.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
return [
|
||||
'timezone' => 'America/Santiago',
|
||||
'locale' => 'es',
|
||||
'database' => 'mysql',
|
||||
'debug' => false,
|
||||
'benchmark' => false,
|
||||
'login_hours' => 5*24
|
||||
];
|
24
app_old/config/databases.php
Normal file
24
app_old/config/databases.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
include_once dirname(__DIR__) . '/bootstrap/dotenv.php';
|
||||
|
||||
function buildDatabaseConfig(): array {
|
||||
$arr = [
|
||||
'mysql' => [
|
||||
'host' => $_ENV['MYSQL_HOST'],
|
||||
'database' => $_ENV['MYSQL_DATABASE'],
|
||||
'username' => $_ENV['MYSQL_USER'],
|
||||
'password' => $_ENV['MYSQL_PASSWORD']
|
||||
],
|
||||
'mysql_copy' => [
|
||||
'host' => 'localhost',
|
||||
'database' => 'incoviba3',
|
||||
'username' => 'incoviba',
|
||||
'password' => $_ENV['MYSQL_PASSWORD']
|
||||
]
|
||||
];
|
||||
if (isset($_ENV['MYSQL_PORT'])) {
|
||||
$arr['mysql']['port'] = $_ENV['MYSQL_PORT'];
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
return buildDatabaseConfig();
|
6
app_old/config/incoviba.php
Normal file
6
app_old/config/incoviba.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'cierres' => [
|
||||
'caducidad' => 30
|
||||
]
|
||||
];
|
16
app_old/config/locations.php
Normal file
16
app_old/config/locations.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
return [
|
||||
'base' => root(),
|
||||
'cache' => '{locations.base}/cache',
|
||||
'public' => '{locations.base}/public',
|
||||
'resources' => '{locations.base}/resources',
|
||||
'views' => '{locations.resources}/views',
|
||||
'src' => '{locations.base}/src',
|
||||
//'languages' => '{locations.resources}/languages'
|
||||
'app' => '{locations.base}/app',
|
||||
'controllers' => '{locations.app}/Controller',
|
||||
'money' => 'provm.cl/optimus/money',
|
||||
'api' => '192.168.1.100/intranet/api',
|
||||
'api_url' => '/api'
|
||||
];
|
||||
?>
|
Reference in New Issue
Block a user