Local settings

This commit is contained in:
Aldarien
2021-03-26 16:33:36 +00:00
parent 91cc2fed12
commit b6665c8f9c
5 changed files with 8 additions and 4 deletions

View File

@ -11,6 +11,6 @@ return [
'controllers' => '{locations.app}/Controller',
'money' => 'provm.cl/optimus/money',
'api' => '192.168.1.100/intranet/api',
'api_url' => '/api'
'api_url' => '/incoviba/api'
];
?>

View File

@ -2,6 +2,9 @@
use Psr\Container\ContainerInterface as Container;
return [
'base_url' => DI\decorate(function($prev, Container $c) {
return $prev . '/api';
}),
'locations' => DI\decorate(function($prev, Container $c) {
$arr = (array) $prev;
$arr['cache'] = $prev->base . '/cache';

View File

@ -30,7 +30,7 @@ foreach ($files as $file) {
$container = $builder->build();
$app = Bridge::create($container);
$app->setBasePath('/api');
$app->setBasePath($app->getContainer()->get('base_url'));
$app->addRoutingMiddleware();
foreach ($folders as $folder) {

View File

@ -10,7 +10,7 @@ return [
'databases' => function() {
$arr = [
'mysql' => [
'host' => 'db',
'host' => 'localhost',
//'port' => 3306,
'database' => 'incoviba',
'username' => 'incoviba',

View File

@ -1,5 +1,6 @@
<?php
return [
'debug' => false,
'benchmark' => false
'benchmark' => false,
'base_url' => '/incoviba'
];