Initialize variables in bootstrap.json templates

This commit is contained in:
Daniel Berteaud 2013-10-02 19:52:42 +02:00
parent 4b1d0517ba
commit 9970dfc9f4
1 changed files with 7 additions and 2 deletions

View File

@ -1,13 +1,18 @@
{
use JSON;
my $dbn = $ajaxplorer{'DbName'} || 'ajaxplorer';
my $dbu = $ajaxplorer{'DbUser'} || 'ajaxplorer';
my $dbp = $ajaxplorer{'DbPassword'} || 'secret';
my $url = $ajaxplorer{'LogoutUrl'} || '';
my $data = {
'core.conf' => {
'USERS_LIST_COMPLETE_MIN_CHARS' => '3',
'SKIP_USER_HISTORY' => JSON::PP::true,
'DIBI_PRECONFIGURATION' => {
'mysql_username' => $dbu,
'mysql_password' => $dbpw,
'mysql_password' => $dbp,
'mysql_driver' => 'mysql',
'group_switch_value' => 'mysql',
'mysql_database' => $dbn,
@ -29,7 +34,7 @@ my $data = {
},
'core.auth' => {
'MASTER_INSTANCE_CONFIG' => {
'LOGOUT_URL' => 'https://auth.' . $DomainName,
'LOGOUT_URL' => $url,
'LOGIN_REDIRECT' => '',
'instance_name' => 'auth.basic_http',
'AJXP_ADMIN_LOGIN' => '',