Initialize variables in bootstrap.json templates

tags/0.1.9
Daniel Berteaud 11 years ago
parent 4b1d0517ba
commit 9970dfc9f4
  1. 9
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/boot.conf/bootstrap.json/10All

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

Loading…
Cancel
Save