Added stats-api settings.

pull/316/head
Ruslan Baidan 2020-05-12 18:25:51 +02:00
parent 45fb3be941
commit 139348eed0
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
1 changed files with 23 additions and 35 deletions

View File

@ -187,45 +187,29 @@ sudo systemctl restart apache2.service > /dev/null
echo -e "\n--- Configuration of MONARC database connection ---\n" echo -e "\n--- Configuration of MONARC database connection ---\n"
sudo bash -c "cat << EOF > config/autoload/local.php sudo bash -c "cat << EOF > config/autoload/local.php
<?php <?php
return array( return [
'doctrine' => array( 'doctrine' => [
'connection' => array( 'connection' => [
'orm_default' => array( 'orm_default' => [
'params' => array( 'params' => [
'host' => '$DBHOST', 'host' => '$DBHOST',
'user' => '$DBUSER_MONARC', 'user' => '$DBUSER_MONARC',
'password' => '$DBPASSWORD_MONARC', 'password' => '$DBPASSWORD_MONARC',
'dbname' => '$DBNAME_COMMON', 'dbname' => '$DBNAME_COMMON',
), ],
), ],
'orm_cli' => array( 'orm_cli' => [
'params' => array( 'params' => [
'host' => '$DBHOST', 'host' => '$DBHOST',
'user' => '$DBUSER_MONARC', 'user' => '$DBUSER_MONARC',
'password' => '$DBPASSWORD_MONARC', 'password' => '$DBPASSWORD_MONARC',
'dbname' => '$DBNAME_CLI', 'dbname' => '$DBNAME_CLI',
), ],
), ],
), ],
), ],
/* Link with (ModuleCore) 'activeLanguages' => ['fr','en','de','nl'],
config['languages'] = [
'fr' => array(
'index' => 1,
'label' => 'Français'
),
'en' => array(
'index' => 2,
'label' => 'English'
),
'de' => array(
'index' => 3,
'label' => 'Deutsch'
),
]
*/
'activeLanguages' => array('fr','en','de','nl',),
'appVersion' => '-master', 'appVersion' => '-master',
@ -233,17 +217,21 @@ return array(
'appCheckingURL' => 'https://version.monarc.lu/check/MONARC', 'appCheckingURL' => 'https://version.monarc.lu/check/MONARC',
'email' => [ 'email' => [
'name' => 'MONARC', 'name' => 'MONARC',
'from' => 'info@monarc.lu', 'from' => 'info@monarc.lu',
], ],
'mospApiUrl' => 'https://objects.monarc.lu/api/v1/', 'mospApiUrl' => 'https://objects.monarc.lu/api/v1/',
'monarc' => array( 'monarc' => [
'ttl' => 60, // timeout 'ttl' => 60, // timeout
'salt' => '', // private salt for password encryption 'salt' => '', // private salt for password encryption
), ],
);
'statsApi' => [
'baseUrl' => 'http://localhost:5002'
],
];
EOF" EOF"