]> git.mxchange.org Git - friendica.git/blob - static/settings.config.php
d6cf142caed78d57156023de8cc137f24ccdf295
[friendica.git] / static / settings.config.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2024, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  * This file declares the default values for the admin settings of Friendica.
21  *
22  * These values will be overridden by the admin settings page.
23  *
24  * Please don't edit this file directly as its content may change in the upcoming versions.
25  *
26  */
27
28 return [
29         'config' => [
30                 // info (String)
31                 // Plaintext description of this node, used in the /friendica module.
32                 'info' => '',
33
34                 // register_policy (Constant)
35                 // Your choices are OPEN, APPROVE, or CLOSED.
36                 // Be certain to create your own personal account before setting CLOSED.
37                 // APPROVE requires you set system.admin_email to the email address of an
38                 // already registered person who can authorize and/or approve/deny the request.
39                 'register_policy' => \Friendica\Module\Register::CLOSED,
40
41                 // register_text (String)
42                 // Will be displayed prominently on the registration page.
43                 'register_text' => '',
44
45                 // sitename (String)
46                 // Displayed server name.
47                 'sitename' => 'Friendica Social Network',
48         ],
49         'system' => [
50                 // account_abandon_days (Integer)
51                 // Will not waste system resources polling external sites for abandoned accounts.
52                 // Enter 0 for no time limit.
53                 'account_abandon_days' => 0,
54
55                 // adjust_poll_frequency (Boolean)
56                 // Automatically detect and set the best feed poll frequency.
57                 'adjust_poll_frequency' => false,
58
59                 // allowed_themes (Comma-separated list)
60                 // Themes users can change to in their settings.
61                 'allowed_themes' => 'frio,vier',
62
63                 // archival_days (Integer)
64                 // Number of days that we try to deliver content before we archive a contact.
65                 'archival_days' => 32,
66
67                 // banner (HTML string)
68                 // HTML snippet of the top navigation banner. Not supported by frio.
69                 'banner' => '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>',
70
71                 // blocked_tags (String)
72                 // Comma separated list of hashtags that shouldn't be displayed in the trending tags
73                 'blocked_tags' => '',
74
75                 // cache_contact_avatar (Boolean)
76                 // Cache versions of the contact avatars. Uses a lot of storage space
77                 'cache_contact_avatar' => true,
78
79                 // cron_interval (Integer)
80                 // Minimal period in minutes between two calls of the "Cron" worker job.
81                 'cron_interval' => 5,
82
83                 // curl_timeout (Integer)
84                 // Value is in seconds. Set to 0 for unlimited (not recommended).
85                 'curl_timeout' =>  60,
86
87                 // dbclean (Boolean)
88                 // Remove old remote items, orphaned database records and old content from some other helper tables.
89                 'dbclean' => false,
90
91                 // dbclean-expire-days (Integer)
92                 // When the database cleanup is enabled, this defines the days after which remote items will be deleted.
93                 // Own items, and marked or filed items are always kept. 0 disables this behaviour.
94                 'dbclean-expire-days' => 0,
95
96                 // dbclean-expire-unclaimed (Integer)
97                 // When the database cleanup is enabled, this defines the days after which unclaimed remote items
98                 // (mostly content from the relay) will be deleted. Default value is 90 days. Defaults to the general
99                 // lifespan value of remote items if set to 0.
100                 'dbclean-expire-unclaimed' => 90,
101
102                 // dbclean_expire_conversation (Integer)
103                 // The conversation data is used for ActivityPub and OStatus, as well as for debug purposes.
104                 // It should be safe to remove it after 14 days, default is 90 days.
105                 'dbclean_expire_conversation' => 90,
106
107                 // debugging (boolean)
108                 // Enable/Disable Debugging (logging)
109                 'debugging' => false,
110
111                 // decoupled_receiver (Boolean)
112                 // Decouple incoming AP posts by doing the processing in the background.
113                 'decoupled_receiver' => false,
114
115                 // default_timezone (String)
116                 // Choose a default timezone. See https://secure.php.net/manual/en/timezones.php
117                 // It only applies to timestamps for anonymous viewers.
118                 'default_timezone' => 'UTC',
119
120                 // directory (String)
121                 // URL of the global directory.
122                 'directory' => 'https://dir.friendica.social',
123
124                 // explicit_content (Boolean)
125                 // Set this to announce that your node is used mostly for explicit content that might not be suited for minors.
126                 'explicit_content' => false,
127
128                 // forbidden_nicknames (Comma-separated list)
129                 // Prevents users from registering the specified nicknames on this node.
130                 // Default value comprises classic role names from RFC 2142.
131                 'forbidden_nicknames' => 'info, marketing, sales, support, abuse, noc, security, postmaster, hostmaster, usenet, news, webmaster, www, uucp, ftp, root, sysop',
132
133                 // compute_circle_counts (Boolean)
134                 // Compute contact circle level when counting unseen network posts.
135                 'compute_circle_counts' => true,
136
137                 // itemspage_network (Integer)
138                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
139                 'itemspage_network' => 40,
140
141                 // itemspage_network_mobile (Integer)
142                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
143                 // on detected mobile devices
144                 'itemspage_network_mobile' => 20,
145
146                 // jpeg_quality (Integer)
147                 // Sets the ImageMagick quality level for JPEG images. Values ranges from 50 (awful) to 100 (near perfect).
148                 'jpeg_quality' => 100,
149
150                 // language (String)
151                 // System default language, including admin-created user default language.
152                 // Two-letters ISO 639-1 code.
153                 'language' => 'en',
154
155                 // local_search (Boolean)
156                 // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
157                 'local_search' => false,
158
159                 // logfile (String)
160                 // The logfile for storing logs.
161                 // Can be a full path or a relative path to the Friendica home directory
162                 'logfile' => 'log/friendica.log',
163
164                 // loglevel (String)
165                 // The loglevel for all logs.
166                 // Has to be one of these values: emergency, alert, critical, error, warning, notice, info, debug
167                 'loglevel' => 'notice',
168
169                 // max_author_posts_community_page (Integer)
170                 // The maximum number of posts on the local community page from a single author.
171                 'max_author_posts_community_page' => 0,
172
173                 // max_image_length (Integer)
174                 // An alternate way of limiting picture upload sizes.
175                 // Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
176                 // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
177                 // If you don't want to set a maximum length, set to -1.
178                 'max_image_length' => -1,
179
180                 // max_server_posts_community_page (Integer)
181                 // The maximum number of posts on the global community page from a single server.
182                 'max_server_posts_community_page' => 0,
183
184                 // maximagesize (Integer)
185                 // Maximum size in bytes of an uploaded photo.
186                 'maximagesize' => 800000,
187
188                 // maxloadavg (Integer)
189                 // Maximum system load before delivery and poll processes are deferred.
190                 'maxloadavg' => 20,
191
192                 // min_memory (Integer)
193                 // Minimal free memory in MB for the worker. Needs access to /proc/meminfo - default 0 (deactivated).
194                 'min_memory' => 0,
195
196                 // min_poll_interval (Integer)
197                 // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
198                 'min_poll_interval' => 15,
199
200                 // no_regfullname (Boolean)
201                 // Allow users to register with a display name comporting fewer than two parts separated by spaces.
202                 'no_regfullname' => true,
203
204                 // no_oembed_rich_content (Boolean)
205                 // If enabled, allow OEmbed for all URLs. Disabled by default.
206                 'no_oembed_rich_content' => true,
207
208                 // optimize_tables (Boolean)
209                 // Periodically (once an hour) run an "optimize table" command for cache tables
210                 'optimize_tables' => false,
211
212                 // process_view (Boolean)
213                 // Process the "View" activity that is used by Peertube.
214                 'process_view' => false,
215
216                 // register_notification (Boolean)
217                 // Send a notification mail to the admin for each new registration.
218                 'register_notification' => true,
219
220                 // relay_deny_tags (String)
221                 // Comma separated list of tags that are rejected.
222                 'relay_deny_tags' => '',
223
224                 // relay_deny_undetected_language (Boolean)
225                 // Deny undetected languages
226                 'relay_deny_undetected_language' => false,
227
228                 // relay_languages (Integer)
229                 // Number of languages that are used per post to check for acceptable posts.
230                 'relay_languages' => 10,
231
232                 // relay_language_quality (Float)
233                 // Minimum value for the language detection quality for relay posts. The value must be between 0 and 1.
234                 'relay_language_quality' => 0,
235
236                 // proxify_content (Boolean)
237                 // Use the proxy functionality for fetching external content
238                 'proxify_content' => true,
239
240                 // relay_directly (Boolean)
241                 // Directly transmit content to relay subscribers without using a relay server
242                 'relay_directly' => false,
243
244                 // relay_scope (Relay::SCOPE_NONE, Relay::SCOPE_TAGS or Relay::SCOPE_ALL)
245                 // Defines the scope of accepted posts from the relay servers
246                 'relay_scope' => '',
247
248                 // relay_server_tags (String)
249                 // Comma separated list of tags for the "tags" subscription.
250                 'relay_server_tags' => '',
251
252                 // relay_user_tags (Boolean)
253                 // If enabled, the tags from the saved searches will used for the "tags" subscription in addition to the "relay_server_tags".
254                 'relay_user_tags' => true,
255
256                 // temppath (String)
257                 // Custom temporary file directory
258                 'temppath' => '',
259
260                 // theme (String)
261                 // System theme name.
262                 'theme' => 'frio',
263
264                 // update_active_contacts (Boolean)
265                 // When activated, only public contacts will be activated regularly that are used for example in items or tags.
266                 'update_active_contacts' => false,
267
268                 // url (String)
269                 // The fully-qualified URL of this Friendica node.
270                 // Used by the worker in a non-HTTP execution environment.
271                 'url' => '',
272
273                 // poco_discovery (Boolean)
274                 // If enabled, the system will check for the existance of other contacts and servers
275                 'poco_discovery' => false,
276
277                 // poco_requery_days (Integer)
278                 // Number of days after which a server is requeried for their contacts and servers it knows of.
279                 'poco_requery_days' => 30,
280
281                 // worker_defer_limit (Integer)
282                 // Per default the systems tries delivering for 15 times before dropping it.
283                 'worker_defer_limit' => 15,
284
285                 // worker_fetch_limit (Integer)
286                 // Number of worker tasks that are fetched in a single query.
287                 'worker_fetch_limit' => 1,
288
289                 // worker_load_cooldown (Integer)
290                 // Maximum load that causes a cooldown before each worker function call.
291                 'worker_load_cooldown' => 0,
292         ],
293
294         'channel' => [
295                 // engagement_hours (Integer)
296                 // Maximum age of incoming posts for the engagement table, when the engagement post limit is 0 or hasn't been reached yet.
297                 'engagement_hours' => 24,
298
299                 // engagement_post_limit (Integer)
300                 // NUmber of posts that are held in the engagement table
301                 'engagement_post_limit' => 20000,
302
303                 // interaction_score_days (Integer)
304                 // Number of days that are used to calculate the interaction score.
305                 'interaction_score_days' => 30,
306
307                 // max_posts_per_author (Integer)
308                 // Maixmum number of posts per page by author
309                 'max_posts_per_author' => 2,
310
311                 // sharer_interaction_days (Integer)
312                 // Number of days of the last interaction that are used to define which sharers are used for the "sharers of sharers" channel.
313                 'sharer_interaction_days' => 90,
314         ],
315
316         // Used in the admin settings to lock certain features
317         'featurelock' => [
318         ],
319
320         // Storage backend configuration
321         'storage' => [
322                 // name (String)
323                 // The name of the current used backend (default is Database)
324                 'name' => 'Database',
325         ],
326 ];