Configuration for the maximum number of post engagement entries
[friendica.git/.git] / static / defaults.config.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2023, 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 base config of Friendica.
21  *
22  * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php
23  *
24  * Please don't edit this file directly as its content may change in the upcoming versions.
25  *
26  */
27
28 return [
29         'database' => [
30                 // host (String)
31                 // Hostname or IP address of the database server.
32                 // Can contain the port number with the syntax "hostname:port".
33                 'hostname' => '',
34
35                 // port (Integer)
36                 // Port of the database server.
37                 // Can be used instead of adding a port number to the hostname
38                 'port' => null,
39
40                 // socket (String)
41                 // Socket of the database server.
42                 // Can be used instead of adding a socket location to the hostname
43                 'socket' => '',
44
45                 // user (String)
46                 // Database username. Please don't use "root".
47                 'username' => '',
48
49                 // pass (String)
50                 // Database user password. Please don't use empty passwords.
51                 'password' => '',
52
53                 // base (String)
54                 // Database name.
55                 'database' => '',
56
57                 // charset (String)
58                 // Database connection charset. Changing this value will likely corrupt special characters.
59                 'charset' => 'utf8mb4',
60
61                 // pdo_emulate_prepares (Boolean)
62                 // If enabled, the builtin emulation for prepared statements is used.
63                 // This can be used as a workaround for the database error "Prepared statement needs to be re-prepared".
64                 'pdo_emulate_prepares' => true,
65
66                 // disable_pdo (Boolean)
67                 // PDO is used by default (if available). Otherwise, MySQLi will be used.
68                 'disable_pdo' => false,
69
70                 // persistent (Boolean)
71                 // This controls if the system should use persistent connections or not.
72                 // Persistent connections increase the performance.
73                 // On the other hand the number of open connections are higher,
74                 // this will most likely increase the system load.
75                 'persistent' => false,
76         ],
77         'config' => [
78                 // admin_email (Comma-separated list)
79                 // In order to perform system administration via the admin panel,
80                 // this must precisely match the email address of the person logged in.
81                 'admin_email' => '',
82
83                 // admin_nickname (String)
84                 // Nickname of the main admin user, used if there are more than one admin user defined in config => admin_email.
85                 'admin_nickname' => '',
86
87                 // max_import_size (Integer)
88                 // Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
89                 'max_import_size' => 200000,
90
91                 // php_path (String)
92                 // Location of PHP command line processor.
93                 'php_path' => 'php',
94         ],
95         'system' => [
96                 // adjust_poll_frequency (Boolean)
97                 // Automatically detect and set the best feed poll frequency.
98                 'adjust_poll_frequency' => false,
99
100                 // allowed_link_protocols (Array)
101                 // Allowed protocols in links URLs, add at your own risk. http(s) is always allowed.
102                 'allowed_link_protocols' => ['ftp://', 'ftps://', 'mailto:', 'cid:', 'gopher://'],
103
104                 // always_show_preview (Boolean)
105                 // Only show small preview pictures.
106                 'always_show_preview' => false,
107
108                 // ap_always_bcc (Boolean)
109                 // Addresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance.
110                 'ap_always_bcc' => false,
111
112                 // archival_days (Integer)
113                 // Number of days that we try to deliver content before we archive a contact.
114                 'archival_days' => 32,
115
116                 // auth_cookie_lifetime (Integer)
117                 // Number of days that should pass without any activity before a user who
118                 // chose "Remember me" when logging in is considered logged out.
119                 'auth_cookie_lifetime' => 7,
120
121                 // avatar_cache (Boolean)
122                 // Cache avatar pictures as files (experimental)
123                 'avatar_cache' => false,
124
125                 // avatar_cache_path (String)
126                 // File path to the avatar cache. Default is /(your basepath)/avatar/
127                 // The value has to be an absolute path and has to end with a "/"
128                 'avatar_cache_path' => '',
129
130                 // avatar_cache_url (String)
131                 // Base URL of the avatar cache. Default is http(s)://(your hostname)/avatar/
132                 // The value has to start with the scheme and end with a "/"
133                 'avatar_cache_url' => '',
134
135                 // basicauth (Boolean)
136                 // Controls if login via BasicAuth is possible (default is true)
137                 'basicauth' => true,
138
139                 // big_emojis (Boolean)
140                 // Display "Emoji Only" posts in big.
141                 'big_emojis' => false,
142
143                 // bulk_delivery (Boolean)
144                 // Delivers AP messages in a bulk (experimental)
145                 'bulk_delivery' => false,
146
147                 // block_local_dir (Boolean)
148                 // Deny public access to the local user directory.
149                 'block_local_dir' => false,
150
151                 // blocked_tags (String)
152                 // Comma separated list of hashtags that shouldn't be displayed in the trending tags
153                 'blocked_tags' => '',
154
155                 // community_no_sharer (Boolean)
156                 // Don't display sharing accounts on the global community
157                 'community_no_sharer' => false,
158
159                 // contact_update_limit (Integer)
160                 // How many contacts should be checked at a time?
161                 'contact_update_limit' => 100,
162
163                 // cron_interval (Integer)
164                 // Minimal period in minutes between two calls of the "Cron" worker job.
165                 'cron_interval' => 5,
166
167                 // cache_driver (database|memcache|memcached|redis|apcu)
168                 // Whether to use Memcache, Memcached, Redis or APCu to store temporary cache.
169                 'cache_driver' => 'database',
170
171                 // decoupled_receiver (Boolean)
172                 // Decouple incoming AP posts by doing the processing in the background.
173                 'decoupled_receiver' => false,
174
175                 // distributed_cache_driver (database|memcache|memcached|redis)
176                 // Whether to use database, Memcache, Memcached or Redis as a distributed cache.
177                 'distributed_cache_driver' => 'database',
178
179                 // fetch_parents (Boolean)
180                 // Fetch missing parent posts
181                 'fetch_parents' => true,
182
183                 // config_adapter (jit|preload)
184                 // Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
185                 'config_adapter' => 'jit',
186
187                 // curl_range_bytes (Integer)
188                 // Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
189                 'curl_range_bytes' => 0,
190
191                 // crawl_permit_period (Integer)
192                 // Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
193                 'crawl_permit_period' => 60,
194
195                 // db_log (Path)
196                 // Name of a logfile to log slow database queries.
197                 'db_log' => '',
198
199                 // db_log_index (Path)
200                 // Name of a logfile to log queries with bad indexes.
201                 'db_log_index' => '',
202
203                 // db_log_index_watch (Comma-separated list)
204                 // Watchlist of indexes to watch.
205                 'db_log_index_watch' => '',
206
207                 // db_log_index_denylist (Comma-separated list)
208                 // Deny list of indexes that shouldn't be watched.
209                 'db_log_index_denylist' => '',
210
211                 // db_loglimit (Integer)
212                 // If a database call lasts longer than this value in seconds it is logged.
213                 // Inactive if system => db_log is empty.
214                 'db_loglimit' => 10,
215
216                 // db_loglimit_index (Integer)
217                 // Number of index rows needed to be logged for indexes on the watchlist. 0 to disable.
218                 'db_loglimit_index' => 0,
219
220                 // db_loglimit_index_high (Integer)
221                 // Number of index rows to be logged anyway (for any index). 0 to disable.
222                 'db_loglimit_index_high' => 0,
223
224                 // dbclean_expire_conversation (Integer)
225                 // When DBClean is enabled, any entry in the conversation table will be deleted after this many days.
226                 // This data is used for ActivityPub, so it shouldn't be lower than the average duration of a discussion.
227                 'dbclean_expire_conversation' => 90,
228
229                 // dbclean-expire-limit (Integer)
230                 // This defines the number of items that are to be deleted in a single call.
231                 // Reduce this value when you are getting lock issues.
232                 // A value of 0 disables the deletion process.
233                 'dbclean-expire-limit' => 1000,
234
235                 // daemon_watchdog (Boolean)
236                 // Enable regular checking if the daemon is running.
237                 // If it is not running and hadn't been terminated normally, it will be started automatically.
238                 'daemon_watchdog' => false,
239
240                 // delete_sleeping_processes (Boolean)
241                 // Periodically delete waiting database processes.
242                 'delete_sleeping_processes' => false,
243
244                 // delete-blocked-servers (Boolean)
245                 // Delete blocked servers if there are no foreign key violations.
246                 'delete-blocked-servers' => false,
247
248                 // dice_profiler_threshold (Float)
249                 // For profiling Dice class creation (0 = disabled, >0 = seconds threshold for profiling)
250                 'dice_profiler_threshold' => 0.5,
251
252                 // diaspora_test (Boolean)
253                 // For development only. Disables the message transfer.
254                 'diaspora_test' => false,
255
256                 // disable_email_validation (Boolean)
257                 // Disables the check if a mail address is in a valid format and can be resolved via DNS.
258                 'disable_email_validation' => false,
259
260                 // disable_implicit_mentions (Boolean) since 2019.03
261                 // Implicit mentions are mentions in the body of replies that are redundant in a thread-enabled system like Friendica.
262                 // This config key disables the gathering of implicit mentions in incoming and outgoing posts.
263                 // Also disables the default automatic removal of implicit mentions from the body of incoming posts.
264                 // Also disables the default automatic addition of implicit mentions in the body of outgoing posts.
265                 // Disabling implicit mentions also affects the "explicit_mentions" additional feature by limiting it
266                 // to the replied-to post author mention in the comment boxes.
267                 'disable_implicit_mentions' => false,
268
269                 // disable_url_validation (Boolean)
270                 // Disables the DNS lookup of a URL.
271                 'disable_url_validation' => false,
272
273                 // disable_password_exposed (Boolean)
274                 // Disable the exposition check against the remote haveibeenpwned API on password change.
275                 'disable_password_exposed' => false,
276
277                 // disable_polling (Boolean)
278                 // Disable the polling of DFRN and OStatus contacts through onepoll.php.
279                 'disable_polling' => false,
280
281                 // display_resharer (Boolean)
282                 // Display the first resharer as icon and text on a reshared item.
283                 'display_resharer' => false,
284
285                 // dlogfile (Path)
286                 // location of the developer log file.
287                 'dlogfile' => '',
288
289                 // dlogip (String)
290                 // restricts develop log writes to requests originating from this IP address.
291                 'dlogip' => '',
292
293                 // emoji_activities (Boolean)
294                 // Display received activities (like, dislike, reshare) as emojis
295                 'emoji_activities' => false,
296
297                 // expire-notify-priority (integer)
298                 // Priority for the expiry notification
299                 'expire-notify-priority' => Friendica\Core\Worker::PRIORITY_LOW,
300
301                 // fetch_by_worker (Boolean)
302                 // Fetch missing posts via a background process
303                 'fetch_by_worker' => false,
304
305                 // fetch_featured_posts (Boolean)
306                 // Fetch featured posts from all contacts
307                 'fetch_featured_posts' => false,
308
309                 // free_crawls (Integer)
310                 // Number of "free" searches when system => permit_crawling is enabled.
311                 'free_crawls' => 10,
312
313                 // circle_edit_image_limit (Integer)
314                 // Number of contacts at which the circle editor should switch from display the profile pictures of the contacts to only display the names.
315                 // This can alternatively be set on a per-account basis in the pconfig table.
316                 'circle_edit_image_limit' => 400,
317
318                 // gserver_update_limit (Integer)
319                 // How many servers should be checked at a time?
320                 'gserver_update_limit' => 100,
321
322                 // hsts (Boolean)
323                 // Enables the sending of HTTP Strict Transport Security headers.
324                 'hsts' => false,
325
326                 // ignore_cache (Boolean)
327                 // For development only. Disables the item cache.
328                 'ignore_cache' => false,
329
330                 // insecure_imap (Boolean)
331                 // If enabled, users are allowed to connect to their IMAP servers unencrypted.
332                 // For security reasons this is disabled by default.
333                 'insecure_imap' => false,
334
335                 // instances_social_key (String)
336                 // Key to the API of https://instances.social which retrieves data about mastodon servers.
337                 // See https://instances.social/api/token to get an API key.
338                 'instances_social_key' => '',
339
340                 // ipv4_resolve (Boolean)
341                 // Resolve IPV4 addresses only. Don't resolve to IPV6.
342                 'ipv4_resolve' => false,
343
344                 // ini_max_execution_time (False|Integer)
345                 // Set the number of seconds a script is allowed to run. Default unlimited for Friendica, false to use the system value.
346                 'ini_max_execution_time' => 0,
347
348                 // ini_pcre_backtrack_limit (False|Integer)
349                 // This has to be quite large to deal with embedded private photos. False to use the system value.
350                 'ini_pcre_backtrack_limit' => 500000,
351
352                 // invitation_only (Boolean)
353                 // If set true registration is only possible after a current member of the node has sent an invitation.
354                 'invitation_only' => false,
355
356                 // itemspage_network (Integer)
357                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
358                 'itemspage_network' => 40,
359
360                 // itemspage_network_mobile (Integer)
361                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
362                 // on detected mobile devices
363                 'itemspage_network_mobile' => 20,
364
365                 // jpeg_quality (Integer)
366                 //
367                 // Lower numbers save space at cost of image detail
368                 // where n is between 1 and 100, and with very poor results below about 50
369                 'jpeg_quality' => 100,
370
371                 // like_no_comment (Boolean)
372                 // Don't update the "commented" value of an item when it is liked.
373                 'like_no_comment' => false,
374
375                 // local_block (Boolean)
376                 // Used in conjunction with "block_public".
377                 'local_block' => false,
378
379                 // local_search (Boolean)
380                 // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
381                 'local_search' => false,
382
383                 // local_tags (Boolean)
384                 // If activated, all hashtags will point to the local server.
385                 'local_tags' => false,
386
387                 // lock_driver (semaphore|database|memcache|memcached|redis|apcu)
388                 // Whether to use semaphores, the database, Memcache, Memcached, Redis or APCu to handle locks.
389                 // Default is auto detection which tries semaphores first, then falls back to the cache driver.
390                 'lock_driver' => '',
391
392                 // logger_config (String)
393                 // Sets the logging adapter of Friendica globally (monolog, syslog, stream)
394                 'logger_config' => 'stream',
395
396                 // syslog flags (Integer)
397                 // Sets the syslog flags in case 'logger_config' is set to 'syslog'
398                 'syslog_flags' => LOG_CONS | LOG_PID | LOG_ODELAY,
399
400                 // syslog flags (Integer)
401                 // Sets the syslog facility in case 'logger_config' is set to 'syslog'
402                 'syslog_facility' => LOG_USER,
403
404                 // maintenance_start (String)
405                 // Start of the window for the daily maintenance cron call.
406                 // The system timezone is used when no timezone is defined here.
407                 'maintenance_start' => '01:00 +00:00',
408
409                 // maintenance_end (String)
410                 // End of the window for the daily maintenance cron call
411                 // The system timezone is used when no timezone is defined here.
412                 'maintenance_end' => '03:00 +00:00',
413
414                 // max_batch_queue (Integer)
415                 // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
416                 'max_batch_queue' => 1000,
417
418                 // max_connections (Integer)
419                 // The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
420                 // When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
421                 'max_connections' => 0,
422
423                 // max_connections_level (Integer 0-100)
424                 // The maximum percentage of connections that are allowed to let the worker start.
425                 'max_connections_level' => 75,
426
427                 // max_contact_queue (Integer)
428                 // Maximum number of queue items for a single contact before subsequent messages are discarded.
429                 'max_contact_queue' => 500,
430
431                 // max_csv_file_size (Integer)
432                 // When uploading a CSV with account addresses to follow
433                 // in the user settings, this controls the maximum file
434                 // size of the upload file.
435                 'max_csv_file_size' => 30720,
436
437                 // max_feed_items (Integer)
438                 // Maximum number of feed items that are fetched and processed. For unlimited items set to 0.
439                 'max_feed_items' => 20,
440
441                 // max_image_length (Integer)
442                 // An alternate way of limiting picture upload sizes.
443                 // Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
444                 // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
445                 // If you don't want to set a maximum length, set to -1.
446                 'max_image_length' => -1,
447
448                 // max_likers (Integer)
449                 // Maximum number of "people who like (or don't like) this" that we will list by name
450                 'max_likers' => 75,
451
452                 // max_processes_backend (Integer)
453                 // Maximum number of concurrent database processes for background tasks.
454                 'max_processes_backend' => 5,
455
456                 // max_processes_frontend (Integer)
457                 // Maximum number of concurrent database processes for foreground tasks.
458                 'max_processes_frontend' => 20,
459
460                 // max_recursion_depth (Integer)
461                 // Maximum recursion depth when fetching posts until the job is delegated to a worker task or finished.
462                 'max_recursion_depth' => 50,
463
464                 // maximagesize (Integer)
465                 // Maximum size in bytes of an uploaded photo.
466                 'maximagesize' => 800000,
467
468                 // memcache_host (String)
469                 // Host name of the memcache daemon.
470                 'memcache_host' => '127.0.0.1',
471
472                 // memcache_port (Integer)
473                 // Port number of the memcache daemon.
474                 'memcache_port' => 11211,
475
476                 // memcached_hosts (Array)
477                 // Array of Memcached servers info [host, port(, weight)], see Memcached::addServers.
478                 'memcached_hosts' => [
479                         ['127.0.0.1', '11211'],
480                 ],
481
482                 // min_poll_interval (Integer)
483                 // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
484                 'min_poll_interval' => 15,
485
486                 // minimum_posting_interval (Integer)
487                 // Minimum interval between two feed posts per user
488                 'minimum_posting_interval' => 0,
489
490                 // no_count (Boolean)
491                 // Don't do count calculations (currently only when showing photo albums).
492                 'no_count' => false,
493
494                 // no_oembed (Boolean)
495                 // Don't use OEmbed to fetch more information about a link.
496                 'no_oembed' => false,
497
498                 // no_redirect_list (Array)
499                 // List of domains where HTTP redirects should be ignored.
500                 'no_redirect_list' => [],
501
502                 // no_smilies (Boolean)
503                 // Don't show smilies.
504                 'no_smilies' => false,
505
506                 // optimize_all_tables (Boolean)
507                 // Optimizes all tables instead of only tables like workerqueue or the cache
508                 'optimize_all_tables' => false,
509
510                 // paranoia (Boolean)
511                 // Log out users if their IP address changed.
512                 'paranoia' => false,
513
514                 // permit_crawling (Boolean)
515                 // Restricts the search for not logged-in users to one search per minute.
516                 'permit_crawling' => false,
517
518                 // pidfile (Path)
519                 // Daemon pid file path. For example: pidfile = /path/to/daemon.pid
520                 'pidfile' => '',
521
522                 // png_quality (Integer)
523                 // Sets the ImageMagick compression level for PNG images. Values range from 0 (uncompressed) to 9 (most compressed).
524                 'png_quality' => 8,
525
526                 // process_view (Boolean)
527                 // Process the "View" activity that is used by Peertube. View activities are displayed, when "emoji_activities" are enabled.
528                 'process_view' => false,
529
530                 // profiler (Boolean)
531                 // Enable internal timings to help optimize code. Needed for "rendertime" addon.
532                 'profiler' => false,
533
534                 // pushpoll_frequency (Integer)
535                 // Frequency of contact poll for subhub contact using the DFRN or OStatus network.
536                 // Available values:
537                 // - 5 = every month
538                 // - 4 = every week
539                 // - 3 = every day
540                 // - 2 = twice a day
541                 // - 1 = every hour
542                 // - 0 = every minute
543                 'pushpoll_frequency' => 3,
544
545                 // redis_host (String)
546                 // Host name or the path to the Unix domain socket of the Redis daemon.
547                 'redis_host' => '127.0.0.1',
548
549                 // redis_port (Integer)
550                 // Port number of the Redis daemon, should be -1 for unix domain socket
551                 'redis_port' => 6379,
552
553                 // redis_db (Integer)
554                 // The sub-database of redis (0 - 15 possible sub-databases)
555                 'redis_db' => 0,
556
557                 // redis_password (String)
558                 // The authentication password for the redis database
559                 'redis_password' => null,
560
561                 // redistribute_activities (Boolean)
562                 // Redistribute incoming activities via ActivityPub
563                 'redistribute_activities' => true,
564
565                 // relay_deny_languages (Array)
566                 // Array of languages (two digit format) that are rejected.
567                 'relay_deny_languages' => [],
568
569                 // relay_deny_undetected_language (Boolean)
570                 // Deny undetected languages
571                 'relay_deny_undetected_language' => false,
572
573                 // session_handler (database|cache|native)
574                 // Whether to use Cache to store session data or to use PHP native session storage.
575                 'session_handler' => 'database',
576
577                 // remote_avatar_lookup (Boolean)
578                 // Perform an avatar lookup via the activated services for remote contacts
579                 'remote_avatar_lookup' => false,
580
581                 // remove_multiplicated_lines (Boolean)
582                 // If enabled, multiple linefeeds in items are stripped to a single one.
583                 'remove_multiplicated_lines' => false,
584
585                 // runtime_ignore (Array)
586                 // List of ignored commands for the runtime logging.
587                 'runtime_ignore' => [],
588
589                 // runtime_loglimit (Integer)
590                 // The runtime is logged, When the program execution time is higher than this value.
591                 'runtime_loglimit' => 0,
592
593                 // sendmail_params (Boolean)
594                 // Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
595                 // This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
596                 // Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
597                 'sendmail_params' => true,
598
599                 // set_creation_date (Boolean)
600                 // When enabled, the user can enter a creation date when composing a post.
601                 'set_creation_date' => false,
602
603                 // show_global_community_hint (Boolean)
604                 // When the global community page is enabled, use this option to display a hint above the stream, that this is a collection of all public top-level postings that arrive at your node.
605                 'show_global_community_hint' => false,
606
607                 // show_received (Boolean)
608                 // Show the received date along with the post creation date
609                 'show_received' => true,
610
611                 // show_received_seconds (Integer)
612                 // Display the received date when the difference between received and created is higher than this.
613                 'show_received_seconds' => 500,
614
615                 // show_unsupported_addons (Boolean)
616                 // Show all addons including the unsupported ones.
617                 'show_unsupported_addons' => false,
618
619                 // show_unsupported_themes (Boolean)
620                 // Show all themes including the unsupported ones.
621                 'show_unsupported_themes' => false,
622
623                 // throttle_limit_day (Integer)
624                 // Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
625                 'throttle_limit_day' => 0,
626
627                 // throttle_limit_week (Integer)
628                 // Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
629                 'throttle_limit_week' => 0,
630
631                 // throttle_limit_month (Integer)
632                 // Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
633                 'throttle_limit_month' => 0,
634
635                 // transmit_pending_events (Boolean)
636                 // Transmit pending events upon accepted contact request for groups
637                 'transmit_pending_events' => false,
638
639                 // update_active_contacts (Boolean)
640                 // When activated, only public contacts will be activated regularly that are used for example in items or tags.
641                 'update_active_contacts' => false,
642
643                 // username_min_length (Integer)
644                 // The minimum character length a username can be.
645                 // This length is checked once the username has been trimmed and multiple spaces have been collapsed into one.
646                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
647                 'username_min_length' => 3,
648
649                 // username_max_length (Integer)
650                 // The maximum character length a username can be.
651                 // This length is checked once the username has been trimmed and multiple spaces have been collapsed into one.
652                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
653                 'username_max_length' => 48,
654
655                 // worker_cooldown (Float)
656                 // Cooldown period in seconds before each worker function call.
657                 'worker_cooldown' => 0,
658
659                 // worker_debug (Boolean)
660                 // If enabled, it prints out the number of running processes split by priority.
661                 'worker_debug' => false,
662
663                 // worker_fetch_limit (Integer)
664                 // Number of worker tasks that are fetched in a single query.
665                 'worker_fetch_limit' => 1,
666
667                 // worker_fork (Boolean)
668                 // Experimental setting. Use pcntl_fork to spawn a new worker process.
669                 // Does not work when "worker_multiple_fetch" is enabled (Needs more testing)
670                 'worker_fork' => false,
671
672                 // worker_jpm (Boolean)
673                 // If enabled, it prints out the jobs per minute.
674                 'worker_jpm' => false,
675
676                 // worker_jpm_range (String)
677                 // List of minutes for the jobs per minute (JPM) calculation
678                 'worker_jpm_range' => '1, 10, 60',
679
680                 // worker_load_cooldown (Integer)
681                 // Maximum load that causes a cooldown before each worker function call.
682                 'worker_load_cooldown' => 0,
683
684                 // worker_load_exponent (Integer)
685                 // Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
686                 // For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
687                 // Setting 0 would allow maximum worker queues at all times, which is not recommended.
688                 'worker_load_exponent' => 3,
689
690                 // worker_max_duration (Array)
691                 // Maximum runtime per priority. Worker processes that exceed this runtime will be terminated.
692                 'worker_max_duration' => [
693                         Friendica\Core\Worker::PRIORITY_CRITICAL   => 720,
694                         Friendica\Core\Worker::PRIORITY_HIGH       => 10,
695                         Friendica\Core\Worker::PRIORITY_MEDIUM     => 60,
696                         Friendica\Core\Worker::PRIORITY_LOW        => 180,
697                         Friendica\Core\Worker::PRIORITY_NEGLIGIBLE => 720
698                 ],
699
700                 // worker_processes_cooldown (Integer)
701                 // Maximum number per processes that causes a cooldown before each worker function call.
702                 'worker_processes_cooldown' => 0,
703
704                 // worker_multiple_fetch (Boolean)
705                 // When activated, the worker fetches jobs for multiple workers (not only for itself).
706                 // This is an experimental setting without knowing the performance impact.
707                 // Does not work when "worker_fork" is enabled (Needs more testing)
708                 'worker_multiple_fetch' => false,
709
710                 // worker_defer_limit (Integer)
711                 // Per default the systems tries delivering for 15 times before dropping it.
712                 'worker_defer_limit' => 15,
713
714                 // xrd_timeout (Integer)
715                 // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
716                 'xrd_timeout' => 20,
717         ],
718         'proxy' => [
719                 // forwarded_for_headers (String)
720                 // A comma separated list of all allowed header values to retrieve the real client IP
721                 // The headers are evaluated in order.
722                 'forwarded_for_headers' => 'HTTP_X_FORWARDED_FOR',
723
724                 // trusted_proxies (String)
725                 // A comma separated list of all trusted proxies, which will get skipped during client IP retrieval
726                 // IP ranges and CIDR notations are allowed
727                 'trusted_proxies' => '',
728         ],
729         'experimental' => [
730                 // exp_themes (Boolean)
731                 // Show experimental themes in user settings.
732                 'exp_themes' => false,
733         ],
734         'theme' => [
735                 // hide_eventlist (Boolean)
736                 // Don't show the birthdays and events on the profile and network page.
737                 'hide_eventlist' => false,
738         ],
739         'jabber' => [
740                 // debug (Boolean)
741                 // Enable debug level for the jabber account synchronisation.
742                 'debug' => false,
743                 // lockpath (Path)
744                 // Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
745                 'lockpath' => '',
746         ],
747         'diaspora' => [
748                 // native_photos (Boolean)
749                 // If enabled, photos to Diaspora will be transmitted via the "photo" element instead of embedding them to the body.
750                 // This is some visual improvement over the embedding but comes with the cost of losing accessibility.
751                 // Is is disabled by default until Diaspora eventually will work on issue https://github.com/diaspora/diaspora/issues/8297
752                 'native_photos' => false,
753         ],
754         'debug' => [
755                 // ap_inbox_log (Boolean)
756                 // Logs every call to /inbox as a JSON file in Friendica's temporary directory
757                 'ap_inbox_log' => false,
758
759                 // ap_inbox_store_untrusted (Boolean)
760                 // Store untrusted content in the inbox entries
761                 'ap_inbox_store_untrusted' => false,
762
763                 // ap_log_unknown (Boolean)
764                 // Logs every unknown ActivityPub activity
765                 'ap_log_unknown' => false,
766
767                 // ap_log_failure (Boolean)
768                 // Logs every ActivityPub activity that couldn't be compacted
769                 'ap_log_failure' => false,
770
771                 // store_source (Boolean)
772                 // Store the source of any post that arrived
773                 'store_source' => false,
774         ],
775         'smarty3' => [
776                 // config_dir (String)
777                 // Base working directory for the templating engine, must be writeable by the webserver user
778                 'config_dir' => 'view/smarty3',
779
780                 // use_sub_dirs (Boolean)
781                 // By default the template cache is stored in several subdirectories.
782                 'use_sub_dirs' => true,
783         ],
784         'api' => [
785                 // mastodon_banner (String)
786                 // Default banner image for Mastodon API, must be a relative path from the base Friendica folder
787                 //
788                 // Default picture credits:
789                 // Author: Lostinlight <https://mastodon.xyz/@lightone>
790                 // License: CC0 https://creativecommons.org/share-your-work/public-domain/cc0/
791                 // Link to original work: https://gitlab.com/lostinlight/per_aspera_ad_astra/-/blob/master/friendica-404/friendica-promo-bubbles.jpg
792                 'mastodon_banner' => '/images/friendica-banner.jpg',
793         ],
794         'blocklist' => [
795                 // public (Boolean)
796                 // Wether the blocklist is publicly listed under /about (or in any later API)
797                 'public' => true,
798         ],
799         'channel' => [
800                 // engagement_hours (Integer)
801                 // Maximum age of incoming posts for the engagement table, when the engagement post limit is 0 or hasn't been reached yet.
802                 'engagement_hours' => 24,
803
804                 // engagement_post_limit (Integer)
805                 // NUmber of posts that are held in the engagement table
806                 'engagement_post_limit' => 20000,
807
808                 // interaction_score_days (Integer)
809                 // Number of days that are used to calculate the interaction score.
810                 'interaction_score_days' => 30,
811
812                 // max_posts_per_author (Integer)
813                 // Maixmum number of posts per page by author
814                 'max_posts_per_author' => 2,
815
816                 // sharer_interaction_days (Integer)
817                 // Number of days of the last interaction that are used to define which sharers are used for the "sharers of sharers" channel.
818                 'sharer_interaction_days' => 90,
819         ],
820 ];