diff --git a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/calendar.inc.php b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/calendar.inc.php index 89378de6..e4bff23b 100644 --- a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/calendar.inc.php +++ b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/calendar.inc.php @@ -1,32 +1,32 @@ <?php $config['calendar_driver'] = "caldav"; $config['calendar_default_view'] = "agendaWeek"; $config['calendar_timeslots'] = 2; $config['calendar_first_day'] = 1; $config['calendar_first_hour'] = 6; $config['calendar_work_start'] = 6; $config['calendar_work_end'] = 18; $config['calendar_event_coloring'] = 0; # This is for external access $config['calendar_caldav_url'] = 'https://%h/dav/calendars/%u/%i'; # This is for internal access - $config['calendar_caldav_server'] = getenv('CALENDAR_CALDAV_SERVER') ?? "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; + $config['calendar_caldav_server'] = getenv('CALENDAR_CALDAV_SERVER') ?: "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; $config['calendar_itip_smtp_server'] = ''; $config['calendar_itip_smtp_user'] = ''; $config['calendar_itip_smtp_pass'] = ''; $config['calendar_itip_send_option'] = 3; $config['calendar_itip_after_action'] = 0; $config['calendar_freebusy_trigger'] = false; $config['kolab_invitation_calendars'] = true; $config['calendar_contact_birthdays'] = true; if (file_exists(RCUBE_CONFIG_DIR . '/' . ($_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__))) { include_once(RCUBE_CONFIG_DIR . '/' . ($_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__)); } ?> diff --git a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/chwala.inc.php b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/chwala.inc.php index 32bc4c43..260e6234 100644 --- a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/chwala.inc.php +++ b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/chwala.inc.php @@ -1,163 +1,163 @@ <?php // This file contains Chwala configuration options. // Real config file must contain or include Roundcube Framework config. // ------------------------------------------------ // Global settings // ------------------------------------------------ // Main files source, backend driver which handles // authentication and configuration of Chwala // Note: Currently only 'kolab' is supported $config['fileapi_backend'] = 'kolabfiles'; // This is how chwala connects to the kolabfiles backend $config['fileapi_kolabfiles_baseuri'] = getenv('FILEAPI_KOLABFILES_BASEURI'); // Enabled external storage drivers // Note: Currenty only 'seafile' and webdav is available // $config['fileapi_drivers'] = array('seafile', 'webdav'); // $config['fileapi_drivers'] = array('webdav'); // Disable the kolab-auth plugin $config['fileapi_plugins'] = ['kolab_folders']; // Pre-defined list of external storage sources. // Here admins can define sources which will be "mounted" into users folder tree /* $config['fileapi_sources'] = array( 'Seafile' => array( 'driver' => 'seafile', 'host' => 'seacloud.cc', // when username is set to '%u' current user name and password // will be used to authenticate to this storage source 'username' => '%u', ), 'Public-Files' => array( 'driver' => 'webdav', 'baseuri' => 'https://some.host.tld/Files', 'username' => 'admin', 'password' => 'pass', ), ); */ // $config['fileapi_sources'] = array( // 'Public-Files' => array( // 'driver' => 'webdav', // 'baseuri' => 'https://kolab.local/dav/drive/user/admin@kolab.local/', // 'username' => '%u', // 'password' => 'simple123', // ), // ); // Default values for sources configuration dialog. // Note: use driver names as the array keys. // Note: %u variable will be resolved to the current username. /* $config['fileapi_presets'] = array( 'seafile' => array( 'host' => 'seacloud.cc', 'username' => '%u', ), 'webdav' => array( 'baseuri' => 'https://some.host.tld/Files', 'username' => '%u', ), ); */ // Disables listing folders from the backend storage. // This is useful when you configured an external source(s) and // you want to use it exclusively, ignoring Kolab folders. $config['fileapi_backend_storage_disabled'] = false; // Manticore service URL. Enables use of WebODF collaborative editor. // Note: this URL should be accessible from Chwala host and Roundcube host as well. $config['fileapi_manticore'] = null; // WOPI/Office service URL. Enables use of collaborative editor supporting WOPI. // Note: this URL should be accessible from the Chwala host $config['fileapi_wopi_office'] = getenv('FILEAPI_WOPI_OFFICE'); // Name of the user interface skin. $config['file_api_skin'] = 'default'; // Chwala UI communicates with Chwala API via HTTP protocol // The URL here is a location of Chwala API service. By default // the UI location is used with addition of /api/ suffix. # Force https if we're behind a proxy. Browsers don't allow mixed content. -$config['file_api_url'] = getenv('FILE_API_URL') ?? 'https://' . ($_SERVER['HTTP_HOST'] ?? null) . '/chwala/api/'; +$config['file_api_url'] = getenv('FILE_API_URL') ?: 'https://' . ($_SERVER['HTTP_HOST'] ?? null) . '/chwala/api/'; // URL for the wopi service to connect back to us (instead of file_api_url) $config['file_api_server_url'] = getenv('FILE_API_SERVER_URL'); // Type of Chwala cache. Supported values: 'db', 'apc' and 'memcache'. // Note: This is only for some additional data like WOPI capabilities. $config['fileapi_cache'] = 'db'; // lifetime of Chwala cache // possible units: s, m, h, d, w $config['fileapi_cache_ttl'] = '1d'; // LDAP addressbook that would be searched for user names autocomplete. // That should be an array refering to the Roundcube's $config['ldap_public'] // array key or complete addressbook configuration array. // FIXME: replace with non ldap solution // $config['fileapi_users_source'] = 'kolab_addressbook'; // The LDAP attribute which will be used as ACL user identifier // $config['fileapi_users_field'] = 'mail'; // The LDAP search filter will be combined with search queries // $config['fileapi_users_filter'] = ''; // Include groups in searching // $config['fileapi_groups'] = false; // Prefix added to the group name to build IMAP ACL identifier // $config['fileapi_group_prefix'] = 'group:'; // The LDAP attribute (or field name) which will be used as ACL group identifier // $config['fileapi_group_field'] = 'name'; // ------------------------------------------------ // SeaFile driver settings // ------------------------------------------------ // Enables SeaFile Web API conversation log $config['fileapi_seafile_debug'] = false; // Enables caching of some SeaFile information e.g. folders list // Note: 'db', 'apc' and 'memcache' are supported $config['fileapi_seafile_cache'] = 'db'; // Expiration time of SeaFile cache entries $config['fileapi_seafile_cache_ttl'] = '7d'; // Default SeaFile Web API host // Note: http:// and https:// (default) prefixes can be used here $config['fileapi_seafile_host'] = 'localhost'; // Enables SSL certificates validation when connecting // with any SeaFile server $config['fileapi_seafile_ssl_verify_host'] = false; $config['fileapi_seafile_ssl_verify_peer'] = false; // To support various Seafile configurations when fetching a file // from Seafile server we proxy it via Chwala server. // Enable this option to allow direct downloading of files // from Seafile server to user browser. $config['fileapi_seafile_allow_redirects'] = false; // ------------------------------------------------ // WebDAV driver settings // ------------------------------------------------ // Default URI location for WebDAV storage $config['fileapi_webdav_baseuri'] = 'https://imap/dav'; ?> diff --git a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_addressbook.inc.php b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_addressbook.inc.php index 753bf3fd..4e359af5 100644 --- a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_addressbook.inc.php +++ b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_addressbook.inc.php @@ -1,25 +1,25 @@ <?php // This option allows to set addressbooks priority or to disable some // of them. Disabled addressbooks will be not shown in the UI. Default: 0. // 0 - "Global address book(s) first". Use all address books, starting with the global (LDAP) // 1 - "Personal address book(s) first". Use all address books, starting with the personal (Kolab) // 2 - "Global address book(s) only". Use the global (LDAP) addressbook. Disable the personal. // 3 - "Personal address book(s) only". Use the personal (Kolab) addressbook(s). Disable the global. $config['kolab_addressbook_prio'] = 0; // Base URL to build fully qualified URIs to access address books via CardDAV // The following replacement variables are supported: // %h - Current HTTP host // %u - Current webmail user name // %n - Folder name // %i - Folder UUID # This is for external access $config['kolab_addressbook_carddav_url'] = 'http://%h/dav/addressbooks/%u/%i'; # This is for internal access -$config['kolab_addressbook_carddav_server'] = getenv('KOLAB_ADDRESSBOOK_CARDDAV_SERVER') ?? "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; +$config['kolab_addressbook_carddav_server'] = getenv('KOLAB_ADDRESSBOOK_CARDDAV_SERVER') ?: "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; $config['kolab_addressbook_driver'] = 'carddav'; ?> diff --git a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_files.inc.php b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_files.inc.php index 9db3d19d..422fed05 100644 --- a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_files.inc.php +++ b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/kolab_files.inc.php @@ -1,20 +1,20 @@ <?php // URL of kolab-chwala installation for public access -$config['kolab_files_url'] = getenv('KOLAB_FILES_URL') ?? 'https://' . ($_SERVER["HTTP_HOST"] ?? null) . '/chwala/'; +$config['kolab_files_url'] = getenv('KOLAB_FILES_URL') ?: 'https://' . ($_SERVER["HTTP_HOST"] ?? null) . '/chwala/'; // This is how the plugin does chwala api requests on the server $config['kolab_files_server_url'] = getenv('KOLAB_FILES_SERVER_URL'); // List of files list columns. Available are: name, size, mtime, type $config['kolab_files_list_cols'] = array('name', 'mtime', 'size'); // Name of the column to sort files list by $config['kolab_files_sort_col'] = 'name'; // Order of the files list sort $config['kolab_files_sort_order'] = 'asc'; // Number of concurent requests for searching and collections listing. Default: 1 $config['kolab_files_search_threads'] = 1; ?> diff --git a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/tasklist.inc.php b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/tasklist.inc.php index 49d20448..7e534503 100644 --- a/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/tasklist.inc.php +++ b/docker/roundcube/rootfs/opt/app-root/src/roundcubemail-config-templates/tasklist.inc.php @@ -1,11 +1,11 @@ <?php $config['tasklist_driver'] = 'caldav'; -$config['tasklist_caldav_server'] = getenv('TASKLIST_CALDAV_SERVER') ?? "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; +$config['tasklist_caldav_server'] = getenv('TASKLIST_CALDAV_SERVER') ?: "https://" . ($_SERVER["HTTP_HOST"] ?? null) . "/dav"; // default sorting order of tasks listing (auto, datetime, startdatetime, flagged, complete, changed) $config['tasklist_sort_col'] = ''; // default sorting order for tasks listing (asc or desc) $config['tasklist_sort_order'] = 'asc';