Use the generic JSON::true and JSON::false boolean notation so it can work with JSON::XS (if installed) or JSON::PP

tags/0.1.10
Daniel Berteaud 11 years ago
parent 07206b904b
commit c23a8e2ee8
  1. 26
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/boot.conf/bootstrap.json/10All

@ -9,7 +9,7 @@ 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::true,
'DIBI_PRECONFIGURATION' => { 'DIBI_PRECONFIGURATION' => {
'mysql_username' => $dbu, 'mysql_username' => $dbu,
'mysql_password' => $dbp, 'mysql_password' => $dbp,
@ -19,18 +19,18 @@ my $data = {
'mysql_host' => 'localhost' 'mysql_host' => 'localhost'
}, },
'UNIQUE_INSTANCE_CONFIG' => { 'UNIQUE_INSTANCE_CONFIG' => {
'FAST_CHECKS' => JSON::PP::true, 'FAST_CHECKS' => JSON::true,
'ROLES_FILEPATH' => '/var/lib/ajaxplorer/plugins/auth.serial/roles.ser', 'ROLES_FILEPATH' => '/var/lib/ajaxplorer/plugins/auth.serial/roles.ser',
'USERS_DIRPATH' => '/var/lib/ajaxplorer/plugins/auth.serial', 'USERS_DIRPATH' => '/var/lib/ajaxplorer/plugins/auth.serial',
'instance_name' => 'conf.serial', 'instance_name' => 'conf.serial',
'group_switch_value' => 'conf.serial', 'group_switch_value' => 'conf.serial',
'REPOSITORIES_FILEPATH' => '/var/lib/ajaxplorer/plugins/conf.serial/repo.ser' 'REPOSITORIES_FILEPATH' => '/var/lib/ajaxplorer/plugins/conf.serial/repo.ser'
}, },
'USER_CREATE_REPOSITORY' => JSON::PP::false, 'USER_CREATE_REPOSITORY' => JSON::false,
'SAVE_GUEST_PREFERENCES' => JSON::PP::false, 'SAVE_GUEST_PREFERENCES' => JSON::false,
'USERS_LIST_HIDE_LOGIN' => JSON::PP::false, 'USERS_LIST_HIDE_LOGIN' => JSON::false,
'USERS_LIST_COMPLETE_LIMIT' => '20', 'USERS_LIST_COMPLETE_LIMIT' => '20',
'ALLOW_CROSSUSERS_SHARING' => JSON::PP::true, 'ALLOW_CROSSUSERS_SHARING' => JSON::true,
}, },
'core.auth' => { 'core.auth' => {
'MASTER_INSTANCE_CONFIG' => { 'MASTER_INSTANCE_CONFIG' => {
@ -38,22 +38,22 @@ my $data = {
'LOGIN_REDIRECT' => '', 'LOGIN_REDIRECT' => '',
'instance_name' => 'auth.basic_http', 'instance_name' => 'auth.basic_http',
'AJXP_ADMIN_LOGIN' => '', 'AJXP_ADMIN_LOGIN' => '',
'TRANSMIT_CLEAR_PASS' => JSON::PP::true, 'TRANSMIT_CLEAR_PASS' => JSON::true,
'AUTOCREATE_AJXPUSER' => JSON::PP::false, 'AUTOCREATE_AJXPUSER' => JSON::false,
'group_switch_value' => 'auth.basic_http', 'group_switch_value' => 'auth.basic_http',
'USERS_FILEPATH' => '/var/lib/ajaxplorer/plugins/auth.serial/users.ser' 'USERS_FILEPATH' => '/var/lib/ajaxplorer/plugins/auth.serial/users.ser'
}, },
'SLAVE_INSTANCE_CONFIG_group_switch' => '', 'SLAVE_INSTANCE_CONFIG_group_switch' => '',
'SLAVE_INSTANCE_CONFIG' => [], 'SLAVE_INSTANCE_CONFIG' => [],
'SECURE_LOGIN_FORM' => JSON::PP::false, 'SECURE_LOGIN_FORM' => JSON::false,
'SESSION_SET_CREDENTIALS' => JSON::PP::false, 'SESSION_SET_CREDENTIALS' => JSON::false,
'MULTI_MODE' => { 'MULTI_MODE' => {
'instance_name' => 'MASTER_SLAVE', 'instance_name' => 'MASTER_SLAVE',
'group_switch_value' => 'MASTER_SLAVE' 'group_switch_value' => 'MASTER_SLAVE'
}, },
'CASE_SENSITIVE' => JSON::PP::true, 'CASE_SENSITIVE' => JSON::true,
'ENABLE_USERS' => JSON::PP::true, 'ENABLE_USERS' => JSON::true,
'ALLOW_GUEST_BROWSING' => JSON::PP::false, 'ALLOW_GUEST_BROWSING' => JSON::false,
'MULTI_USER_BASE_DRIVER' => '', 'MULTI_USER_BASE_DRIVER' => '',
'PASSWORD_MINLENGTH' => '8' 'PASSWORD_MINLENGTH' => '8'
} }

Loading…
Cancel
Save