MonarcAppFO/config/autoload/local.php.dist

105 lines
2.7 KiB
Plaintext
Raw Normal View History

2016-04-12 14:39:18 +02:00
<?php
/**
* Local Configuration Override
*
* This configuration override file is for overriding environment-specific and
* security-sensitive configuration information. Copy this file without the
* .dist extension at the end and populate values as needed.
*
* @NOTE: This file is ignored from Git by default with the .gitignore included
* in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
* credentials from accidentally being committed into version control.
*/
$appdir = getenv('APP_DIR') ?: '/var/lib/monarc';
$package_json = json_decode(file_get_contents('./package.json'), true);
return [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => [
'host' => 'localhost',
'user' => 'sqlmonarcuser',
'password' => 'password',
'dbname' => 'monarc_common',
],
],
'orm_cli' => [
'params' => [
'host' => 'localhost',
'user' => 'sqlmonarcuser',
'password' => 'password',
2017-02-01 11:00:04 +01:00
'dbname' => 'monarc_cli',
],
],
],
],
'languages' => [
2016-12-21 13:23:32 +01:00
'fr' => [
'index' => 1,
'label' => 'Français',
],
'en' => [
'index' => 2,
'label' => 'English',
],
'de' => [
'index' => 3,
'label' => 'Deutsch',
],
2021-02-19 10:25:59 +01:00
'nl' => [
2017-09-21 15:57:50 +02:00
'index' => 4,
'label' => 'Nederlands',
],
],
2016-07-28 11:20:16 +02:00
'defaultLanguageIndex' => 1,
2024-08-21 16:47:09 +02:00
'activeLanguages' => ['fr','en','de','nl','es','ro','it','ja','pl','pt','zh'],
2016-07-28 11:20:16 +02:00
'appVersion' => $package_json['version'],
'checkVersion' => true,
'appCheckingURL' => 'https://version.monarc.lu/check/MONARC',
'email' => [
'name' => 'MONARC',
'from' => 'info@monarc.lu',
],
'instanceName' => 'Development', // for example a short URL or client name from ansible
'twoFactorAuthEnforced' => false,
'terms' => 'https://my.monarc.lu/terms.html',
2020-12-17 15:52:37 +01:00
'monarc' => [
'ttl' => 60,
'cliModel' => 'generic',
2020-12-17 15:52:37 +01:00
],
2022-11-11 16:52:24 +01:00
'twoFactorAuthEnforced' => false,
'mospApiUrl' => 'https://objects.monarc.lu/api/',
'statsApi' => [
'baseUrl' => 'http://127.0.0.1:5005',
'apiKey' => '',
],
'import' => [
'uploadFolder' => $appdir . '/data/import/files',
'isBackgroundProcessActive' => false,
],
2024-08-21 16:47:09 +02:00
/* Custom configuration of the smtp. The example config below is to make Mailcatcher work for the dev env.
'smtpOptions' => [
'name' => 'localhost',
'host' => '127.0.0.1',
'port' => 1025,
],
*/
2020-12-17 15:52:37 +01:00
];