]> git.mxchange.org Git - friendica.git/blob - static/defaults.config.php
Merge pull request #11195 from annando/issue-10966
[friendica.git] / static / defaults.config.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2022, 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                 // user (String)
41                 // Database user name. Please don't use "root".
42                 'username' => '',
43
44                 // pass (String)
45                 // Database user password. Please don't use empty passwords.
46                 'password' => '',
47
48                 // base (String)
49                 // Database name.
50                 'database' => '',
51
52                 // charset (String)
53                 // Database connection charset. Changing this value will likely corrupt special characters.
54                 'charset' => 'utf8mb4',
55
56                 // pdo_emulate_prepares (Boolean)
57                 // If enabled, the builtin emulation for prepared statements is used.
58                 // This can be used as a workaround for the database error "Prepared statement needs to be re-prepared".
59                 'pdo_emulate_prepares' => true,
60
61                 // disable_pdo (Boolean)
62                 // PDO is used by default (if available). Otherwise MySQLi will be used.
63                 'disable_pdo' => false,
64
65                 // persistent (Boolean)
66                 // This controls if the system should use persistent connections or not.
67                 // Persistent connections increase the performance.
68                 // On the other hand the number of open connections are higher,
69                 // this will most likely increase the system load.
70                 'persistent' => false,
71         ],
72         'config' => [
73                 // admin_email (Comma-separated list)
74                 // In order to perform system administration via the admin panel,
75                 // this must precisely match the email address of the person logged in.
76                 'admin_email' => '',
77
78                 // admin_nickname (String)
79                 // Nickname of the main admin user, used if there are more than one admin user defined in config => admin_email.
80                 'admin_nickname' => '',
81
82                 // max_import_size (Integer)
83                 // Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
84                 'max_import_size' => 200000,
85
86                 // php_path (String)
87                 // Location of PHP command line processor.
88                 'php_path' => 'php',
89         ],
90         'system' => [
91                 // adjust_poll_frequency (Boolean)
92                 // Automatically detect and set the best feed poll frequency.
93                 'adjust_poll_frequency' => false,
94
95                 // allowed_link_protocols (Array)
96                 // Allowed protocols in links URLs, add at your own risk. http(s) is always allowed.
97                 'allowed_link_protocols' => ['ftp://', 'ftps://', 'mailto:', 'cid:', 'gopher://'],
98
99                 // always_show_preview (Boolean)
100                 // Only show small preview pictures.
101                 'always_show_preview' => false,
102
103                 // ap_always_bcc (Boolean)
104                 // Adresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance.
105                 'ap_always_bcc' => false,
106
107                 // archival_days (Integer)
108                 // Number of days that we try to deliver content before we archive a contact.
109                 'archival_days' => 32,
110
111                 // auth_cookie_lifetime (Integer)
112                 // Number of days that should pass without any activity before a user who
113                 // chose "Remember me" when logging in is considered logged out.
114                 'auth_cookie_lifetime' => 7,
115
116                 // big_emojis (Boolean)
117                 // Display "Emoji Only" posts in big.
118                 'big_emojis' => false,
119
120                 // block_local_dir (Boolean)
121                 // Deny public access to the local user directory.
122                 'block_local_dir' => false,
123
124                 // blocked_tags (String)
125                 // Comma separated list of hash tags that shouldn't be displayed in the trending tags
126                 'blocked_tags' => '',
127
128                 // community_no_sharer (Boolean)
129                 // Don't display sharing accounts on the global community
130                 'community_no_sharer' => false,
131
132                 // contact_update_limit (Integer)
133                 // How much contacts should be checked at a time?
134                 'contact_update_limit' => 100,
135
136                 // cron_interval (Integer)
137                 // Minimal period in minutes between two calls of the "Cron" worker job.
138                 'cron_interval' => 5,
139
140                 // cache_driver (database|memcache|memcached|redis|apcu)
141                 // Whether to use Memcache, Memcached, Redis or APCu to store temporary cache.
142                 'cache_driver' => 'database',
143
144                 // distributed_cache_driver (database|memcache|memcached|redis)
145                 // Whether to use database, Memcache, Memcached or Redis as a distributed cache.
146                 'distributed_cache_driver' => 'database',
147
148                 // config_adapter (jit|preload)
149                 // Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
150                 'config_adapter' => 'jit',
151
152                 // curl_range_bytes (Integer)
153                 // Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
154                 'curl_range_bytes' => 0,
155
156                 // crawl_permit_period (Integer)
157                 // Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
158                 'crawl_permit_period' => 60,
159
160                 // db_log (Path)
161                 // Name of a logfile to log slow database queries.
162                 'db_log' => '',
163
164                 // db_log_index (Path)
165                 // Name of a logfile to log queries with bad indexes.
166                 'db_log_index' => '',
167
168                 // db_log_index_watch (Comma-separated list)
169                 // Watchlist of indexes to watch.
170                 'db_log_index_watch' => '',
171
172                 // db_log_index_denylist (Comma-separated list)
173                 // Deny list of indexes that shouldn't be watched.
174                 'db_log_index_denylist' => '',
175
176                 // db_loglimit (Integer)
177                 // If a database call lasts longer than this value in seconds it is logged.
178                 // Inactive if system => db_log is empty.
179                 'db_loglimit' => 10,
180
181                 // db_loglimit_index (Integer)
182                 // Number of index rows needed to be logged for indexes on the watchlist. 0 to disable.
183                 'db_loglimit_index' => 0,
184
185                 // db_loglimit_index_high (Integer)
186                 // Number of index rows to be logged anyway (for any index). 0 to disable.
187                 'db_loglimit_index_high' => 0,
188
189                 // dbclean_expire_conversation (Integer)
190                 // When DBClean is enabled, any entry in the conversation table will be deleted after this many days.
191                 // This data is used for ActivityPub, so it shouldn't be lower than the average duration of a discussion.
192                 'dbclean_expire_conversation' => 90,
193
194                 // dbclean-expire-limit (Integer)
195                 // This defines the number of items that are to be deleted in a single call.
196                 // Reduce this value when you are getting lock issues.
197                 // A value of 0 disables the deletion process.
198                 'dbclean-expire-limit' => 1000,
199
200                 // daemon_watchdog (Boolean)
201                 // Enable regular checking if the daemon is running.
202                 // If it is not running and hadn't been terminated normally, it will be started automatically.
203                 'daemon_watchdog' => false,
204
205                 // delete_sleeping_processes (Boolean)
206                 // Periodically delete waiting database processes.
207                 'delete_sleeping_processes' => false,
208
209                 // dice_profiler_threshold (Float)
210                 // For profiling Dice class creation (0 = disabled, >0 = seconds threshold for profiling)
211                 'dice_profiler_threshold' => 0.5,
212
213                 // diaspora_test (Boolean)
214                 // For development only. Disables the message transfer.
215                 'diaspora_test' => false,
216
217                 // disable_email_validation (Boolean)
218                 // Disables the check if a mail address is in a valid format and can be resolved via DNS.
219                 'disable_email_validation' => false,
220
221                 // disable_implicit_mentions (Boolean) since 2019.03
222                 // Implicit mentions are mentions in the body of replies that are redundant in a thread-enabled system like Friendica.
223                 // This config key disables the gathering of implicit mentions in incoming and outgoing posts.
224                 // Also disables the default automatic removal of implicit mentions from the body of incoming posts.
225                 // Also disables the default automatic addition of implicit mentions in the body of outgoing posts.
226                 // Disabling implicit mentions also affects the "explicit_mentions" additional feature by limiting it
227                 // to the replied-to post author mention in the comment boxes.
228                 'disable_implicit_mentions' => false,
229
230                 // disable_url_validation (Boolean)
231                 // Disables the DNS lookup of an URL.
232                 'disable_url_validation' => false,
233
234                 // disable_password_exposed (Boolean)
235                 // Disable the exposition check against the remote haveibeenpwned API on password change.
236                 'disable_password_exposed' => false,
237
238                 // disable_polling (Boolean)
239                 // Disable the polling of DFRN and OStatus contacts through onepoll.php.
240                 'disable_polling' => false,
241
242                 // display_resharer (Boolean)
243                 // Display the first resharer as icon and text on a reshared item.
244                 'display_resharer' => false,
245
246                 // dlogfile (Path)
247                 // location of the developer log file.
248                 'dlogfile' => '',
249
250                 // dlogip (String)
251                 // restricts develop log writes to requests originating from this IP address.
252                 'dlogip' => '',
253
254                 // expire-notify-priority (integer)
255                 // Priority for the expirary notification 
256                 'expire-notify-priority' => PRIORITY_LOW,
257
258                 // free_crawls (Integer)
259                 // Number of "free" searches when system => permit_crawling is enabled.
260                 'free_crawls' => 10,
261
262                 // groupedit_image_limit (Integer)
263                 // Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names.
264                 // This can alternatively be set on a per account basis in the pconfig table.
265                 'groupedit_image_limit' => 400,
266
267                 // gserver_update_limit (Integer)
268                 // How much servers should be checked at a time?
269                 'gserver_update_limit' => 100,
270
271                 // hsts (Boolean)
272                 // Enables the sending of HTTP Strict Transport Security headers.
273                 'hsts' => false,
274
275                 // ignore_cache (Boolean)
276                 // For development only. Disables the item cache.
277                 'ignore_cache' => false,
278
279                 // insecure_imap (Boolean)
280                 // If enabled, users are allowed to connect to their IMAP servers unencrypted.
281                 // For security reasons this is disabled by default.
282                 'insecure_imap' => false,
283
284                 // instances_social_key (String)
285                 // Key to the API of https://instances.social which retrieves data about mastodon servers.
286                 // See https://instances.social/api/token to get an API key.
287                 'instances_social_key' => '',
288
289                 // ipv4_resolve (Boolean)
290                 // Resolve IPV4 addresses only. Don't resolve to IPV6.
291                 'ipv4_resolve' => false,
292
293                 // invitation_only (Boolean)
294                 // If set true registration is only possible after a current member of the node has send an invitation.
295                 'invitation_only' => false,
296
297                 // itemspage_network (Integer)
298                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
299                 'itemspage_network' => 40,
300
301                 // itemspage_network_mobile (Integer)
302                 // default number of items per page in stream pages (network, community, profile/contact statuses, search)
303                 // on detected mobile devices
304                 'itemspage_network_mobile' => 20,
305
306                 // jpeg_quality (Integer)
307                 // 
308                 // Lower numbers save space at cost of image detail
309                 // where n is between 1 and 100, and with very poor results below about 50
310                 'jpeg_quality' => 100,
311
312                 // like_no_comment (Boolean)
313                 // Don't update the "commented" value of an item when it is liked.
314                 'like_no_comment' => false,
315
316                 // local_block (Boolean)
317                 // Used in conjunction with "block_public".
318                 'local_block' => false,
319
320                 // local_search (Boolean)
321                 // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
322                 'local_search' => false,
323
324                 // local_tags (Boolean)
325                 // If activated, all hashtags will point to the local server.
326                 'local_tags' => false,
327
328                 // logger_config (String)
329                 // Sets the logging adapter of Friendica globally (monolog, syslog, stream)
330                 'logger_config' => 'stream',
331
332                 // syslog flags (Integer)
333                 // Sets the syslog flags in case 'logger_config' is set to 'syslog'
334                 'syslog_flags' => LOG_CONS | LOG_PID | LOG_ODELAY,
335
336                 // syslog flags (Integer)
337                 // Sets the syslog facility in case 'logger_config' is set to 'syslog'
338                 'syslog_facility' => LOG_USER,
339
340                 // maintenance_start (String)
341                 // Start of the window for the daily maintenance cron call.
342                 // The system timezone is used when no timezone is defined here.
343                 'maintenance_start' => '01:00 +00:00',
344
345                 // maintenance_end (String)
346                 // End of the window for the daily maintenance cron call
347                 // The system timezone is used when no timezone is defined here.
348                 'maintenance_end' => '03:00 +00:00',
349
350                 // max_batch_queue (Integer)
351                 // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
352                 'max_batch_queue' => 1000,
353
354                 // max_connections (Integer)
355                 // The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
356                 // When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
357                 'max_connections' => 0,
358
359                 // max_connections_level (Integer 0-100)
360                 // The maximum percentage of connections that are allowed to let the worker start.
361                 'max_connections_level' => 75,
362
363                 // max_contact_queue (Integer)
364                 // Maximum number of queue items for a single contact before subsequent messages are discarded.
365                 'max_contact_queue' => 500,
366
367                 // max_csv_file_size (Integer)
368                 // When uploading a CSV with account addresses to follow
369                 // in the user settings, this controls the maximum file
370                 // size of the upload file.
371                 'max_csv_file_size' => 30720,
372
373                 // max_feed_items (Integer)
374                 // Maximum number of feed items that are fetched and processed. For unlimited items set to 0.
375                 'max_feed_items' => 20,
376
377                 // max_image_length (Integer)
378                 // An alternate way of limiting picture upload sizes.
379                 // Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
380                 // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
381                 // If you don't want to set a maximum length, set to -1.
382                 'max_image_length' => -1,
383
384                 // max_likers (Integer)
385                 // Maximum number of "people who like (or don't like) this"  that we will list by name
386                 'max_likers' => 75,
387
388                 // max_processes_backend (Integer)
389                 // Maximum number of concurrent database processes for background tasks.
390                 'max_processes_backend' => 5,
391
392                 // max_processes_frontend (Integer)
393                 // Maximum number of concurrent database processes for foreground tasks.
394                 'max_processes_frontend' => 20,
395
396                 // maximagesize (Integer)
397                 // Maximum size in bytes of an uploaded photo.
398                 'maximagesize' => 800000,
399
400                 // memcache_host (String)
401                 // Host name of the memcache daemon.
402                 'memcache_host' => '127.0.0.1',
403
404                 // memcache_port (Integer)
405                 // Port number of the memcache daemon.
406                 'memcache_port' => 11211,
407
408                 // memcached_hosts (Array)
409                 // Array of Memcached servers info [host, port(, weight)], see Memcached::addServers.
410                 'memcached_hosts' => [
411                         ['127.0.0.1', '11211'],
412                 ],
413
414                 // min_poll_interval (Integer)
415                 // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
416                 'min_poll_interval' => 15,
417
418                 // minimum_posting_interval (Integer)
419                 // Minimum interval between two feed posts per user
420                 'minimum_posting_interval' => 0,
421
422                 // no_count (Boolean)
423                 // Don't do count calculations (currently only when showing photo albums).
424                 'no_count' => false,
425
426                 // no_oembed (Boolean)
427                 // Don't use OEmbed to fetch more information about a link.
428                 'no_oembed' => false,
429
430                 // no_redirect_list (Array)
431                 // List of domains where HTTP redirects should be ignored. 
432                 'no_redirect_list' => [],
433
434                 // no_smilies (Boolean)
435                 // Don't show smilies.
436                 'no_smilies' => false,
437
438                 // paranoia (Boolean)
439                 // Log out users if their IP address changed.
440                 'paranoia' => false,
441
442                 // permit_crawling (Boolean)
443                 // Restricts the search for not logged in users to one search per minute.
444                 'permit_crawling' => false,
445
446                 // pidfile (Path)
447                 // Daemon pid file path. For example: pidfile = /path/to/daemon.pid
448                 'pidfile' => '',
449
450                 // png_quality (Integer)
451                 // Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
452                 'png_quality' => 8,
453
454                 // profiler (Boolean)
455                 // Enable internal timings to help optimize code. Needed for "rendertime" addon.
456                 'profiler' => false,
457
458                 // pushpoll_frequency (Integer)
459                 // Frequency of contact poll for subhub contact using the DFRM or OStatus network.
460                 // Available values:
461                 // - 5 = every month
462                 // - 4 = every week
463                 // - 3 = every day
464                 // - 2 = twice a day
465                 // - 1 = every hour
466                 // - 0 = every minute
467                 'pushpoll_frequency' => 3,
468
469                 // redis_host (String)
470                 // Host name of the redis daemon.
471                 'redis_host' => '127.0.0.1',
472
473                 // redis_port (String)
474                 // Port number of the redis daemon.
475                 'redis_port' => 6379,
476
477                 // redis_db (Integer)
478                 // The sub-database of redis (0 - 15 possible sub-databases)
479                 'redis_db' => 0,
480
481                 // redis_password (String)
482                 // The authentication password for the redis database
483                 'redis_password' => null,
484
485                 // session_handler (database|cache|native)
486                 // Whether to use Cache to store session data or to use PHP native session storage.
487                 'session_handler' => 'database',
488
489                 // remote_avatar_lookup (Boolean)
490                 // Perform an avatar lookup via the activated services for remote contacts
491                 'remote_avatar_lookup' => false,
492
493                 // remove_multiplicated_lines (Boolean)
494                 // If enabled, multiple linefeeds in items are stripped to a single one.
495                 'remove_multiplicated_lines' => false,
496
497                 // sendmail_params (Boolean)
498                 // Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
499                 // This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
500                 // Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
501                 'sendmail_params' => true,
502
503                 // show_global_community_hint (Boolean)
504                 // 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 on your node.
505                 'show_global_community_hint' => false,
506
507                 // show_received (Boolean)
508                 // Show the receive data along with the post creation date
509                 'show_received' => true,
510
511                 // show_received_seconds (Integer)
512                 // Display the received date when the difference between received and created is higher than this.
513                 'show_received_seconds' => 500,
514
515                 // show_unsupported_addons (Boolean)
516                 // Show all addons including the unsupported ones.
517                 'show_unsupported_addons' => false,
518
519                 // show_unsupported_themes (Boolean)
520                 // Show all themes including the unsupported ones.
521                 'show_unsupported_themes' => false,
522
523                 // throttle_limit_day (Integer)
524                 // Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
525                 'throttle_limit_day' => 0,
526
527                 // throttle_limit_week (Integer)
528                 // Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
529                 'throttle_limit_week' => 0,
530
531                 // throttle_limit_month (Integer)
532                 // Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
533                 'throttle_limit_month' => 0,
534
535                 // update_active_contacts (Boolean)
536                 // When activated, only public contacts will be activated regularly that are used for example in items or tags.
537                 'update_active_contacts' => false,
538
539                 // username_min_length (Integer)
540                 // The minimum character length a username can be.
541                 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
542                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
543                 'username_min_length' => 3,
544
545                 // username_max_length (Integer)
546                 // The maximum character length a username can be.
547                 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
548                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
549                 'username_max_length' => 48,
550
551                 // worker_cooldown (Integer)
552                 // Cooldown period in seconds after each worker function call.
553                 'worker_cooldown' => 0,
554
555                 // worker_debug (Boolean)
556                 // If enabled, it prints out the number of running processes split by priority.
557                 'worker_debug' => false,
558
559                 // worker_fetch_limit (Integer)
560                 // Number of worker tasks that are fetched in a single query.
561                 'worker_fetch_limit' => 1,
562
563                 // worker_fork (Boolean)
564                 // Experimental setting. Use pcntl_fork to spawn a new worker process.
565                 // Does not work when "worker_multiple_fetch" is enabled (Needs more testing)
566                 'worker_fork' => false,
567
568                 // worker_jpm (Boolean)
569                 // If enabled, it prints out the jobs per minute.
570                 'worker_jpm' => false,
571
572                 // worker_jpm_range (String)
573                 // List of minutes for the jobs per minute (JPM) calculation
574                 'worker_jpm_range' => '1, 10, 60',
575
576                 // worker_load_exponent (Integer)
577                 // Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
578                 // For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
579                 // Setting 0 would allow maximum worker queues at all times, which is not recommended.
580                 'worker_load_exponent' => 3,
581
582                 // worker_multiple_fetch (Boolean)
583                 // When activated, the worker fetches jobs for multiple workers (not only for itself).
584                 // This is an experimental setting without knowing the performance impact.
585                 // Does not work when "worker_fork" is enabled (Needs more testing)
586                 'worker_multiple_fetch' => false,
587                 
588                 // worker_defer_limit (Integer)
589                 // Per default the systems tries delivering for 15 times before dropping it.
590                 'worker_defer_limit' => 15,
591
592                 // xrd_timeout (Integer)
593                 // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
594                 'xrd_timeout' => 20,
595         ],
596         'experimental' => [
597                 // exp_themes (Boolean)
598                 // Show experimental themes in user settings.
599                 'exp_themes' => false,
600         ],
601         'theme' => [
602                 // hide_eventlist (Boolean)
603                 // Don't show the birthdays and events on the profile and network page.
604                 'hide_eventlist' => false,
605         ],
606         'jabber' => [
607                 // debug (Boolean)
608                 // Enable debug level for the jabber account synchronisation.
609                 'debug' => false,
610                 // lockpath (Path)
611                 // Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
612                 'lockpath' => '',
613         ],
614         'debug' => [
615                 // ap_inbox_log (Boolean)
616                 // Logs every call to /inbox as a JSON file in Friendica's temporary directory
617                 'ap_inbox_log' => false,
618
619                 // show_direction (Boolean)
620                 // Display if a post had been fetched or had been pushed towards our server
621                 'show_direction' => false,
622
623                 // total_ap_delivery (Boolean)
624                 // Deliver via AP to every possible receiver and we suppress the delivery to these contacts with other protocols
625                 'total_ap_delivery' => false,
626         ]
627 ];