-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc.php.dist
240 lines (194 loc) · 9.88 KB
/
config.inc.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?php
/*
+-------------------------------------------------------------------------+
| Configuration for the Calendar plugin |
| |
| Copyright (C) 2010, Lazlo Westerhof - Netherlands |
| Copyright (C) 2011-2014, 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/>. |
| |
+-------------------------------------------------------------------------+
| Author: Lazlo Westerhof <[email protected]> |
| Thomas Bruederli <[email protected]> |
| Gene Hawkins <[email protected]> |
+-------------------------------------------------------------------------+
*/
// backend type ("database", "caldav", "ical", "ldap")
$config['calendar_driver'] = array("caldav");
$config['calendar_driver_default'] = "caldav";
// default calendar view (agendaDay, agendaWeek, month)
$config['calendar_default_view'] = "month";
//Default Sync time value in seconds, 600sec=10minutes
$config['calendar_sync_period'] = "600";
// Default calendar Save to - Personal is the default for Nextcloud
$config['calendar_default_calendar'] = 'Personal';
// show a birthdays calendar from the user's address book(s)
$config['calendar_contact_birthdays'] = false; // TODO - DO NOT CHECK BOX IN RC SETTINGS - Instead, let NC generate the bday calendar and it will show up.
// mapping of Roundcube date formats to calendar formats (long/short/agenda)
// should be in sync with 'date_formats' in main config
$config['calendar_date_format_sets'] = array(
'yyyy-MM-dd' => array('MMM d yyyy', 'M-d', 'ddd MM-dd'),
'dd-MM-yyyy' => array('d MMM yyyy', 'd-M', 'ddd dd-MM'),
'yyyy/MM/dd' => array('MMM d yyyy', 'M/d', 'ddd MM/dd'),
'MM/dd/yyyy' => array('MMM d yyyy', 'M/d', 'ddd MM/dd'),
'dd/MM/yyyy' => array('d MMM yyyy', 'd/M', 'ddd dd/MM'),
'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M', 'ddd dd.MM.'),
'd.M.yyyy' => array('d. MMM yyyy', 'd.M', 'ddd d.MM.'),
);
// general date format (only set if different from default date format and not user configurable)
// $config['calendar_date_format'] = "yyyy-MM-dd";
// time format (only set if different from default date format)
// $config['calendar_time_format'] = "HH:mm";
// short date format (used for column titles)
// $config['calendar_date_short'] = 'M-d';
// long date format (used for calendar title)
// $config['calendar_date_long'] = 'MMM d yyyy';
// date format used for agenda view
// $config['calendar_date_agenda'] = 'ddd MM-dd';
// timeslots per hour (1, 2, 3, 4, 6)
$config['calendar_timeslots'] = 4;
// show this number of days in agenda view
$config['calendar_agenda_range'] = 60;
// first day of the week (0-6)
$config['calendar_first_day'] = 0;
// first hour of the calendar (0-23)
$config['calendar_first_hour'] = 6;
// working hours begin
$config['calendar_work_start'] = 8;
// working hours end
$config['calendar_work_end'] = 17;
// show line at current time of the day
$config['calendar_time_indicator'] = true;
// Display week numbers:
// -1: don't display week numbers
// 0: in datepicker only (default)
// 1: in both datepicker and calendar
$config['calendar_show_weekno'] = 0;
// default alarm settings for new events.
// this is only a preset when a new event dialog opens
// possible values are <empty>, DISPLAY, EMAIL
$config['calendar_default_alarm_type'] = '';
// default alarm offset for new events.
// use ical-style offset values like "-1H" (one hour before) or "+30M" (30 minutes after)
$config['calendar_default_alarm_offset'] = '-15M';
// how to colorize events:
// 0: according to calendar color
// 1: according to category color
// 2: calendar for outer, category for inner color
// 3: category for outer, calendar for inner color
$config['calendar_event_coloring'] = 2;
// event categories
$config['calendar_categories'] = array(
'Birthdays' => '7a4053',
'Family' => '191970',
'Friends' => '2e004f',
'Holidays' => '9e9e00',
'Personal' => '005c5c',
'Work' => '224c69',
);
// enable users to invite/edit attendees for shared events organized by others
$config['calendar_allow_invite_shared'] = true;
// allow users to accecpt iTip invitations who are no explicitly listed as attendee.
// this can be the case if invitations are sent to mailing lists or alias email addresses.
$config['calendar_allow_itip_uninvited'] = true;
// controls the visibility/default of the checkbox controlling the sending of iTip invitations
// 0 = hidden + disabled
// 1 = hidden + active
// 2 = visible + unchecked
// 3 = visible + active
$config['calendar_itip_send_option'] = 3;
// Action taken after iTip request is handled. Possible values:
// 0 - no action
// 1 - move to Trash
// 2 - delete the message
// 3 - flag as deleted
// folder_name - move the message to the specified folder
$config['calendar_itip_after_action'] = 0;
// enable asynchronous free-busy triggering after data changed
$config['calendar_freebusy_trigger'] = false;
// free-busy information will be displayed for user calendars if available
// 0 - no free-busy information
// 1 - enabled in all views
// 2 - only in quickview
$config['calendar_include_freebusy_data'] = 1;
// SMTP server host used to send (anonymous) itip messages.
// To override the SMTP port or connection method, provide a full URL like 'tls://somehost:587'
// This will add a link to invitation messages to allow users from outside
// to reply when their mail clients do not support iTip format.
$config['calendar_itip_smtp_server'] = null;
// SMTP username used to send (anonymous) itip messages
$config['calendar_itip_smtp_user'] = '%u';
// SMTP password used to send (anonymous) itip messages
$config['calendar_itip_smtp_pass'] = '%p';
// cut 'username_domain' from username und URL - @MAT-WEISS-2017
$config['cut_username_domain'] = false;
// show virtual invitation calendars (Kolab driver only)
$config['kolab_invitation_calendars'] = false;
// Base URL to build fully qualified URIs to access calendars via CALDAV
// The following replacement variables are supported:
// %h - Current HTTP host
// %u - Current webmail user name
// %n - Calendar name
// %i - Calendar UUID
// $config['calendar_caldav_url'] = 'http://%h/iRony/calendars/%u/%i';
// Driver to provide a resource directory ('ldap' is the only implementation yet).
// Leave empty or commented to disable resources support.
// $config['calendar_resources_driver'] = 'ldap';
// LDAP directory configuration to find avilable resources for events
// $config['calendar_resources_directory'] = array(/* ldap_public-like address book configuration */);
// Enables displaying of free-busy URL with token-based authentication
// Set it to the prefix URL, e.g. 'https://hostname/freebusy' or just '/freebusy'.
// See freebusy_session_auth in configuration of kolab_auth plugin.
$config['calendar_freebusy_session_auth_url'] = null;
// Crypt key to encrypt passwords for added iCAL/CalDAV calendars
// $config['calendar_crypt_key'] = "This is now taken care of through the plugin and uses the randomly generated key from Roundcube des_key during install";
// Enable debugging output for iCAL/CalDAV drivers
$config['calendar_caldav_debug'] = false;
$config['calendar_ical_debug'] = false;
/*
OAuth2 provider for CalDAV auth
For Google calendars and holiday calendars, you need a Google Calendar API key.
Get the key at the Google Developers Console (https://console.developers.google.com/apis/)
create or select an app, add the Calendar API and create a new
browser key.
*/
// $config['calendar_oauth_providers'] = array(
// "key" => array(
// "name" => "Google OAuth2 Provider",
// "scope" => "https://www.googleapis.com/auth/calendar",
// "json" => "/lib/vendor/oauth2/google_oauth.json" // Rename google_oauth.json.dist to google_oauth.json
// ),
// "key" => array(
// "name" => "Google OAuth Provider",
// "scope" => "https://www.googleapis.com/auth/calendar",
// "client_id" => "some_string_from_your_google_account.apps.googleusercontent.com",
// "client_secret" => "your_app_secret",
// "authorize_endpoint" => "https://accounts.google.com/o/oauth2/v2/auth",
// "token_endpoint" => "https://www.domain.tld/mail/?_task=calendar="
// )
// );
// Pre-installed calendars, added at first access to calendar section
// Caldav driver is supported only
$config['calendar_preinstalled_calendars'] = array(
'Nextcloud' => array(
'driver' => 'caldav',
'name' => '',
'caldav_user' => '%u',
'caldav_pass' => '%p',
'caldav_auth_type' => 'basic', // Authentication choices are 'basic' or 'digest'
'caldav_url' => 'https://%h/nextcloud/remote.php/dav/calendars/%u/',
'color' => '', // Can specify color using hex or leave blank for auto color
'showAlarms' => 1));
?>