diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2013-02-27 13:26:19 (GMT) |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2013-02-27 13:26:19 (GMT) |
commit | d454c019d2e0d1d64f59a108c6cbf0f30c2b0511 (patch) | |
tree | 74e4319fe95bc0c6f9a43e908a7b10155c4627be | |
parent | f709fb7996677b6659c879ed1fa1623dd76d4bac (diff) | |
download | iRony-d454c019d2e0d1d64f59a108c6cbf0f30c2b0511.tar.gz |
Load a local service config file over the default Roundcube config. Add a template for such a service config
-rw-r--r-- | config/dav.inc.php.sample | 45 | ||||
-rw-r--r-- | public_html/index.php | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/config/dav.inc.php.sample b/config/dav.inc.php.sample new file mode 100644 index 0000000..a136e60 --- /dev/null +++ b/config/dav.inc.php.sample @@ -0,0 +1,45 @@ +<?php + +/* + +-------------------------------------------------------------------------+ + | Configuration for the Kolab DAV server | + | | + | Copyright (C) 2013, Kolab Systems AG | + | | + | This program is free software: you can redistribute it and/or modify | + | it under the terms of the GNU Affero General Public License as | + | published by the Free Software Foundation, either version 3 of the | + | License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public License| + | along with this program. If not, see <http://www.gnu.org/licenses/>. | + | | + +-------------------------------------------------------------------------+ +*/ + +$rcmail_config = array(); + +// Log IMAP conversation to <log_dir>/imap or to syslog +$rcmail_config['imap_debug'] = false; + +// Log DAV requests to <log_dir>/davdebug +$rcmail_config['kolab_dav_debug'] = false; + +// IMAP server +$rcmail_config['default_host'] = '192.168.0.22'; +#$rcmail_config['default_host'] = 'localhost'; + +// Enables messages cache. Only 'db' cache is supported. +$rcmail_config['messages_cache'] = false; + +// Enable local cache for Kolab objects +$rcmail_config['kolab_cache'] = true; + +// User agent string written to kolab storage MIME messages +$rcmail_config['useragent'] = 'Kolab DAV Server libkolab/' . RCUBE_VERSION; + diff --git a/public_html/index.php b/public_html/index.php index 1c02f51..1049f99 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -59,6 +59,7 @@ require_once KOLAB_DAV_ROOT . '/lib/Roundcube/bootstrap.php'; // Roundcube framework initialization $rcube = rcube::get_instance(rcube::INIT_WITH_DB | rcube::INIT_WITH_PLUGINS); +$rcube->config->load_from_file(RCUBE_CONFIG_DIR . 'dav.inc.php'); $rcube->plugins->init($rcube); $rcube->plugins->load_plugins(array('libkolab','libcalendaring')); |