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