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