-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.inc.php.dist
163 lines (141 loc) · 6.74 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
<?php
// Full URL to the Nextcloud server
// e.g. https://example.com/nextcloud if in sub-path
// or https://cloud.example.com if in root
$config["nextcloud_attachment_server"] = "";
// Username resolving strategy from internal Roundcube
// username which usually is the email address e.g. user@example.com or IMAP User
// Placeholders are replaced as following
// %s => verbatim RC username as reported by rcmail->get_user_name(). Depending on config loginuser@domain or login
// %i => username used to log in to imap. usually equal to %s
// %e => user email
// %l, %u => email local part (%u is for backward compatibility)
// %d => email domain
// %h => IMAP Host
$config["nextcloud_attachment_username"] = "%u";
// Don't try the email password at all, because we know it won't work
// Defaults to false, i.e. try the password
$config["nextcloud_attachment_dont_try_mail_password"] = false;
// Name for the sub-folder to upload to
// Defaults to "Mail Attachments"
// Can't be sub-folder of sub-folder link folder/sub
//
// The folder name can also be translated according to the users configured locale
// by setting the value to a locale-keyed array like
// ["en_US" => "Mail Attachments", "de_DE" => "E-Mail Anhänge"]
// If locale doesn't exist, en_US or first will be used
$config["nextcloud_attachment_folder"] = "Mail Attachments";
// $config["nextcloud_attachment_folder"] = ["en_US" => "Mail Attachments", "de_DE" => "E-Mail Anhänge"]
// Folder Layout
// "flat" => Flat folder layout, everything in the Folder
// "date:format" => Create folder hierarchy according to format. See https://unicode-org.github.io/icu/userguide/format_parse/datetime/
// Use "/" as the folder separator. Defaults to date:Y/LLLL
// Dateformat is localized
// "hash:algo:depth" => Use "algo"-hash of file, creating sub folder for every of the "depth" bytes
// see https://www.php.net/manual/en/function.hash-algos.php
// Defaults to hash:sha1:2
// Defaults to flat
$config["nextcloud_attachment_folder_layout"] = "flat";
// (Dis)Allow user to change the layout
// true => layout is locked, i.e. not user-changeable
// false => user may change the layout on their settings page
$config["nextcloud_attachment_folder_layout_locked"] = true;
// Limit to show a warning at for large attachments.
// has to be smaller than $config['max_message_size']
// set to null to disable
$config["nextcloud_attachment_softlimit"] = "25M";
// Behavior if $config['max_message_size'] is hit.
// "prompt" => show dialog a la outlook or apple
// "upload" => automatically upload without asking a la google
// Defaults to "prompt"
$config["nextcloud_attachment_behavior"] = "prompt";
// Checksum Algorithm for Attachment Page
// Defaults to sha256
// see https://www.php.net/manual/en/function.hash-algos.php
$config["nextcloud_attachment_checksum"] = "sha256";
// Generate Password protected link.
// Passwords will be included in the message body only, not in the HTML attachment
// Defaults to false
$config["nextcloud_attachment_password_protected_links"] = false;
// Allow/Disallow user to change the password protection option for themselves
// true => user can not change the setting
// false => user may change the setting
$config["nextcloud_attachment_password_protected_links_locked"] = true;
// Generated password length
// Passwords will be alphanumerical strings with upper and lower case letters and numbers
// Defaults to 12
$config["nextcloud_attachment_password_length"] = 12;
// The alphabets from which to generate password
// It is guaranteed that at least one character of each set is used,
// as long as password_length > |password_alphabets|
// Default: ["123456789", "ABCDEFGHJKLMNPQRSTUVWXYZ", "abcdefghijkmnopqrstuvwxyz"]
// (Lookalikes are 0O and Il are excluded)
$config["nextcloud_attachment_password_alphabets"] = ["123456789", "ABCDEFGHJKLMNPQRSTUVWXYZ", "abcdefghijkmnopqrstuvwxyz"];
// Expire share links after amount of days.
// Links will expire on the last valid day at 11:59:59pm AoE-Time
// Setting to "false" or negative value disables link expiry
// Defaults to false
$config["nextcloud_attachment_expire_links"] = false;
// Allow/Disallow user to change the link expiry option for themselves
// true => user can not change the setting
// false => user may change the setting
$config["nextcloud_attachment_expire_links_locked"] = true;
// Automatically add Folder to .sync-exclude.lst in order to prevent
// Clients from automatically Downloading the Attachment folder
$config["nextcloud_attachment_sync_exclude_lst"] = false;
// List of users to exclude
// They won't be able to interact with the plugin at all
// No prompts, no automatic uploading, no settings.
// List by RC username or resolved username e.g. ["user@demo.com", "user"]
$config["nextcloud_attachment_exclude_users"] = [];
// Exclude users listed by uid (you need add the mapping to the address book) or email in any of the following
// address books. This allows you to configure a hidden LDAP address book containing the users
// to exclude.
//
// Hide an addressbook by setting
// $config['ldap_public'][*] = [
// ...
// 'hidden' => true,
// ...
// ];
// in the global config.
//
// Add the uid mapping via
// $config['ldap_public'][*] = [
// ...
// 'fieldmap' => [
// ...
// //internal => ldapattr
// 'uid' => 'uid',
// ...
// ],
// ...
// ]
// in the global config. Replace mapped attribute with appropriate value for your directory e.g. cn
// And replace "*" with the appropriate address book name
$config["nextcloud_attachment_exclude_users_in_addr_books"] = [];
// Exclude users that have a mapped value in an address book
// format [ [ 'address_book', 'mapped_attribute', 'matched_value' ], ... ]
//
// Resulting in every user listed in the address book "address_book"
// to be excluded if they have a "mapped_attribute", matching "matched_value".
//
// E.g. ['public', 'memberOf', 'cn=no_cloud,ou=groups,dc=example,dc=com']
//
// multiple attributes and multiple address books are supported
$config["nextcloud_attachment_exclude_users_with_addr_book_value"] = [];
// Exclude user that that are in a given group in an address book
// format [ [ 'address_book', 'group' ], ... ]
//
// Resulting in every user listed in the address book "address_book" that is
// is in group "group" to be excluded. You have to correctly configure the group
// mapping for the LDAP entry
//
// E.g. ['public', 'nocloud']
//
// multiple groups and multiple address books are supported
$config["nextcloud_attachment_exclude_users_in_addr_book_group"] = [];
// Enable/Disable certificate validation for https on WebDAV and API requests
// Defaults to true (enabled)
$config["nextcloud_attachment_verify_https"] = true;
// vim: set syntax=php ts=4 sw=4: