From c25787db1ea9b40b06dc3a644fd654dca46056f1 Mon Sep 17 00:00:00 2001 From: Gofannon Date: Wed, 27 Jun 2018 23:12:30 +0200 Subject: [PATCH] [enh] Split configuration in different files Separate dedicated Yunohost configuration in a new file that cannot be modified by user Adapt scripts to handle new files See https://github.com/YunoHost-Apps/dokuwiki_ynh/pull/37 --- conf/local.php | 21 --------------------- conf/local.protected.php | 33 +++++++++++++++++++++++++++++++++ scripts/install | 14 +++++++++++--- scripts/upgrade | 24 +++++++++++++++++------- 4 files changed, 61 insertions(+), 31 deletions(-) create mode 100644 conf/local.protected.php diff --git a/conf/local.php b/conf/local.php index bd02233..cfa5cd6 100644 --- a/conf/local.php +++ b/conf/local.php @@ -11,24 +11,3 @@ /* Basic Settings */ $conf['lang'] = '__YNH_LANGUAGE__'; //your language - -/* Authentication Settings */ -$conf['useacl'] = 1; //Use Access Control Lists to restrict access? -$conf['authtype'] = 'authldap'; //which authentication backend should be used -$conf['passcrypt'] = 'sha1'; //Used crypt method (smd5,md5,sha1,ssha,crypt,mysql,my411) -$conf['superuser'] = '__YNH_ADMIN_USER__'; //The admin can be user or @group or comma separated list user1,@group1,user2 -$conf['manager'] = '__YNH_ADMIN_USER__'; //The manager can be user or @group or comma separated list user1,@group1,user2 - -/* LDAP Yunohost config */ -$conf['plugin']['authldap']['server'] = 'localhost'; -$conf['plugin']['authldap']['port'] = 389; -$conf['plugin']['authldap']['version'] = 3; -$conf['plugin']['authldap']['usertree'] = 'ou=users,dc=yunohost,dc=org'; -$conf['plugin']['authldap']['userfilter'] = '(&(uid=%{user})(objectClass=posixAccount))'; -# no groups -#$conf['plugin']['authldap']['grouptree'] = 'ou=Group, dc=server, dc=tld'; -#$conf['plugin']['authldap']['groupfilter'] = '(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))'; - -/* Advanced Settings */ -$conf['updatecheck'] = 0; //automatically check for new releases? -$conf['cssdatauri'] = 512; //Maximum byte size of small images to embed into CSS, won't work on IE<8 diff --git a/conf/local.protected.php b/conf/local.protected.php new file mode 100644 index 0000000..f1b27c4 --- /dev/null +++ b/conf/local.protected.php @@ -0,0 +1,33 @@ +