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