From 5f797220eb60f20c5bae6e256d547beb3f7c7749 Mon Sep 17 00:00:00 2001 From: Gofannon Date: Sun, 17 Jun 2018 19:33:18 +0200 Subject: [PATCH] [enh] Use a dedicated file to store customization Will be useful for next upgrades See https://www.dokuwiki.org/config#configuration_options --- conf/dokuwiki.php | 188 ---------------------------------------------- conf/local.php | 31 ++++++++ scripts/install | 14 ++-- scripts/upgrade | 13 ++-- 4 files changed, 47 insertions(+), 199 deletions(-) delete mode 100644 conf/dokuwiki.php create mode 100644 conf/local.php diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php deleted file mode 100644 index 7aac9c9..0000000 --- a/conf/dokuwiki.php +++ /dev/null @@ -1,188 +0,0 @@ - tags - // 'htmldiff' - diff as HTML table - // 'html' - the full page rendered in XHTML -$conf['rss_media'] = 'both'; //what should be listed? - // 'both' - page and media changes - // 'pages' - page changes only - // 'media' - media changes only -$conf['rss_update'] = 5*60; //Update the RSS feed every n seconds (defaults to 5 minutes) -$conf['rss_show_summary'] = 1; //Add revision summary to title? 0|1 - -/* Advanced Settings */ -$conf['updatecheck'] = 0; //automatically check for new releases? -$conf['userewrite'] = 0; //this makes nice URLs: 0: off 1: .htaccess 2: internal -$conf['useslash'] = 0; //use slash instead of colon? only when rewrite is on -$conf['sepchar'] = '_'; //word separator character in page names; may be a - // letter, a digit, '_', '-', or '.'. -$conf['canonical'] = 0; //Should all URLs use full canonical http://... style? -$conf['fnencode'] = 'url'; //encode filenames (url|safe|utf-8) -$conf['autoplural'] = 0; //try (non)plural form of nonexisting files? -$conf['compression'] = 'gz'; //compress old revisions: (0: off) ('gz': gnuzip) ('bz2': bzip) - // bz2 generates smaller files, but needs more cpu-power -$conf['gzip_output'] = 0; //use gzip content encodeing for the output xhtml (if allowed by browser) -$conf['compress'] = 1; //Strip whitespaces and comments from Styles and JavaScript? 1|0 -$conf['cssdatauri'] = 0; //Maximum byte size of small images to embed into CSS, won't work on IE<8 -$conf['send404'] = 0; //Send a HTTP 404 status for non existing pages? -$conf['broken_iua'] = 0; //Platform with broken ignore_user_abort (IIS+CGI) 0|1 -$conf['xsendfile'] = 0; //Use X-Sendfile (1 = lighttpd, 2 = standard) -$conf['renderer_xhtml'] = 'xhtml'; //renderer to use for main page generation -$conf['readdircache'] = 0; //time cache in second for the readdir operation, 0 to deactivate. - -/* Network Settings */ -$conf['dnslookups'] = 1; //disable to disallow IP to hostname lookups -// Proxy setup - if your Server needs a proxy to access the web set these -$conf['proxy']['host'] = ''; -$conf['proxy']['port'] = ''; -$conf['proxy']['user'] = ''; -$conf['proxy']['pass'] = ''; -$conf['proxy']['ssl'] = 0; -$conf['proxy']['except'] = ''; -// Safemode Hack - read http://www.dokuwiki.org/config:safemodehack ! -$conf['safemodehack'] = 0; -$conf['ftp']['host'] = 'localhost'; -$conf['ftp']['port'] = '21'; -$conf['ftp']['user'] = 'user'; -$conf['ftp']['pass'] = 'password'; -$conf['ftp']['root'] = '/home/user/htdocs'; - - diff --git a/conf/local.php b/conf/local.php new file mode 100644 index 0000000..3b006ab --- /dev/null +++ b/conf/local.php @@ -0,0 +1,31 @@ +