]> git.mxchange.org Git - friendica.git/blob - static/defaults.config.php
f893a12e103f52b63953529d253b4bdc62aa428a
[friendica.git] / static / defaults.config.php
1 <?php
2
3 // CONFIG.PHP
4
5 /* This file declares the default values for the base config of Friendica.
6  *
7  * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php
8  *
9  * Please don't edit this file directly as its content may change in the upcoming versions.
10  */
11
12 return [
13         'database' => [
14                 // host (String)
15                 // Hostname or IP address of the database server.
16                 // Can contain the port number with the syntax "hostname:port".
17                 'hostname' => '',
18
19                 // user (String)
20                 // Database user name. Please don't use "root".
21                 'username' => '',
22
23                 // pass (String)
24                 // Database user password. Please don't use empty passwords.
25                 'password' => '',
26
27                 // base (String)
28                 // Database name.
29                 'database' => '',
30
31                 // charset (String)
32                 // Database connexion charset. Changing this value will likely corrupt special characters.
33                 'charset' => 'utf8mb4',
34         ],
35         'config' => [
36                 // admin_email (Comma-separated list)
37                 // In order to perform system administration via the admin panel,
38                 // this must precisely match the email address of the person logged in.
39                 'admin_email' => '',
40
41                 // admin_nickname (String)
42                 // Nickname of the main admin user, used if there are more than one admin user defined in config => admin_email.
43                 'admin_nickname' => '',
44
45                 // max_import_size (Integer)
46                 // Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
47                 'max_import_size' => 200000,
48
49                 // php_path (String)
50                 // Location of PHP command line processor.
51                 'php_path' => 'php',
52         ],
53         'system' => [
54                 // allowed_link_protocols (Array)
55                 // Allowed protocols in links URLs, add at your own risk. http(s) is always allowed.
56                 'allowed_link_protocols' => ['ftp://', 'ftps://', 'mailto:', 'cid:', 'gopher://'],
57
58                 // always_show_preview (Boolean)
59                 // Only show small preview pictures.
60                 'always_show_preview' => false,
61
62                 // ap_always_bcc (Boolean)
63                 // Adressing receivers via ActivityPub by BCC. Increases privacy, decreases performnce.
64                 'ap_always_bcc' => false,
65
66                 // archival_days (Integer)
67                 // Number of days that we try to deliver content before we archive a contact.
68                 'archival_days' => 32,
69
70                 // auth_cookie_lifetime (Integer)
71                 // Number of days that should pass without any activity before a user who
72                 // chose "Remember me" when logging in is considered logged out.
73                 'auth_cookie_lifetime' => 7,
74
75                 // block_local_dir (Boolean)
76                 // Deny public access to the local user directory.
77                 'block_local_dir' => false,
78
79                 // cron_interval (Integer)
80                 // Minimal period in minutes between two calls of the "Cron" worker job.
81                 'cron_interval' => 5,
82
83                 // cache_driver (database|memcache|memcached|redis)
84                 // Whether to use Memcache or Memcached or Redis to store temporary cache.
85                 'cache_driver' => 'database',
86
87                 // config_adapter (jit|preload)
88                 // Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
89                 'config_adapter' => 'jit',
90
91                 // curl_range_bytes (Integer)
92                 // Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
93                 'curl_range_bytes' => 0,
94
95                 // crawl_permit_period (Integer)
96                 // Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
97                 'crawl_permit_period' => 60,
98
99                 // db_log (Path)
100                 // Name of a logfile to log slow database queries.
101                 'db_log' => '',
102
103                 // db_log_index (Path)
104                 // Name of a logfile to log queries with bad indexes.
105                 'db_log_index' => '',
106
107                 // db_log_index_watch (Comma-separated list)
108                 // Watchlist of indexes to watch.
109                 'db_log_index_watch' => '',
110
111                 // db_log_index_blacklist (Comma-separated list)
112                 // Blacklist of indexes that shouldn't be watched.
113                 'db_log_index_blacklist' => '',
114
115                 // db_loglimit (Integer)
116                 // If a database call lasts longer than this value in seconds it is logged.
117                 // Inactive if system => db_log is empty.
118                 'db_loglimit' => 10,
119
120                 // db_loglimit_index (Integer)
121                 // Number of index rows needed to be logged for indexes on the watchlist. 0 to disable.
122                 'db_loglimit_index' => 0,
123
124                 // db_loglimit_index_high (Integer)
125                 // Number of index rows to be logged anyway (for any index). 0 to disable.
126                 'db_loglimit_index_high' => 0,
127
128                 // dbclean_expire_conversation (Integer)
129                 // When DBClean is enabled, any entry in the conversation table will be deleted after this many days.
130                 // This data is used for ActivityPub, so it shouldn't be lower than the average duration of a discussion.
131                 'dbclean_expire_conversation' => 90,
132
133                 // dbclean-expire-limit (Integer)
134                 // This defines the number of items that are to be deleted in a single call.
135                 // Reduce this value when you are getting memory issues.
136                 'dbclean-expire-limit' => 1000,
137
138                 // diaspora_test (Boolean)
139                 // For development only. Disables the message transfer.
140                 'diaspora_test' => false,
141
142                 // disable_email_validation (Boolean)
143                 // Disables the check if a mail address is in a valid format and can be resolved via DNS.
144                 'disable_email_validation' => false,
145
146                 // disable_implicit_mentions (Boolean) since 2019.03
147                 // Implicit mentions are mentions in the body of replies that are redundant in a thread-enabled system like Friendica.
148                 // This config key disables the gathering of implicit mentions in incoming and outgoing posts.
149                 // Also disables the default automatic removal of implicit mentions from the body of incoming posts.
150                 // Also disables the default automatic addition of implicit mentions in the body of outgoing posts.
151                 // Disabling implicit mentions also affects the "explicit_mentions" additional feature by limiting it
152                 // to the replied-to post author mention in the comment boxes.
153                 'disable_implicit_mentions' => false,
154
155                 // disable_url_validation (Boolean)
156                 // Disables the DNS lookup of an URL.
157                 'disable_url_validation' => false,
158
159                 // disable_password_exposed (Boolean)
160                 // Disable the exposition check against the remote haveibeenpwned API on password change.
161                 'disable_password_exposed' => false,
162
163                 // disable_polling (Boolean)
164                 // Disable the polling of DFRN and OStatus contacts through onepoll.php.
165                 'disable_polling' => false,
166
167                 // dlogfile (Path)
168                 // location of the developer log file.
169                 'dlogfile' => '',
170
171                 // dlogip (String)
172                 // restricts develop log writes to requests originating from this IP address.
173                 'dlogip' => '',
174
175                 // free_crawls (Integer)
176                 // Number of "free" searches when system => permit_crawling is enabled.
177                 'free_crawls' => 10,
178
179                 // frontend_worker_timeout (Integer)
180                 // Value in minutes after we think that a frontend task was killed by the webserver.
181                 'frontend_worker_timeout' => 10,
182
183                 // groupedit_image_limit (Integer)
184                 // Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names.
185                 // This can alternatively be set on a per account basis in the pconfig table.
186                 'groupedit_image_limit' => 400,
187
188                 // hsts (Boolean)
189                 // Enables the sending of HTTP Strict Transport Security headers.
190                 'hsts' => false,
191
192                 // ignore_cache (Boolean)
193                 // For development only. Disables the item cache.
194                 'ignore_cache' => false,
195
196                 // insecure_imap (Boolean)
197                 // If enabled, users are allowed to connect to their IMAP servers unencrypted.
198                 // For security reasons this is disabled by default.
199                 'insecure_imap' => false,
200
201                 // instances_social_key (String)
202                 // Key to the API of https://instances.social which retrieves data about mastodon servers.
203                 // See https://instances.social/api/token to get an API key.
204                 'instances_social_key' => '',
205
206                 // ipv4_resolve (Boolean)
207                 // Resolve IPV4 addresses only. Don't resolve to IPV6.
208                 'ipv4_resolve' => false,
209
210                 // invitation_only (Boolean)
211                 // If set true registration is only possible after a current member of the node has send an invitation.
212                 'invitation_only' => false,
213
214                 // like_no_comment (Boolean)
215                 // Don't update the "commented" value of an item when it is liked.
216                 'like_no_comment' => false,
217
218                 // local_block (Boolean)
219                 // Used in conjunction with "block_public".
220                 'local_block' => false,
221
222                 // local_search (Boolean)
223                 // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
224                 'local_search' => false,
225
226                 // local_tags (Boolean)
227                 // If activated, all hashtags will point to the local server.
228                 'local_tags' => false,
229
230                 // logger_config (String)
231                 // Sets the logging adapter of Friendica globally (monolog, syslog, stream)
232                 'logger_config' => 'stream',
233
234                 // max_batch_queue (Integer)
235                 // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
236                 'max_batch_queue' => 1000,
237
238                 // max_connections (Integer)
239                 // The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
240                 // When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
241                 'max_connections' => 0,
242
243                 // max_connections_level (Integer 0-100)
244                 // The maximum percentage of connections that are allowed to let the worker start.
245                 'max_connections_level' => 75,
246
247                 // max_contact_queue (Integer)
248                 // Maximum number of queue items for a single contact before subsequent messages are discarded.
249                 'max_contact_queue' => 500,
250
251                 // max_image_length (Integer)
252                 // An alternate way of limiting picture upload sizes.
253                 // Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
254                 // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
255                 // If you don't want to set a maximum length, set to -1.
256                 'max_image_length' => -1,
257
258                 // max_processes_backend (Integer)
259                 // Maximum number of concurrent database processes for background tasks.
260                 'max_processes_backend' => 5,
261
262                 // max_processes_frontend (Integer)
263                 // Maximum number of concurrent database processes for foreground tasks.
264                 'max_processes_frontend' => 20,
265
266                 // maximagesize (Integer)
267                 // Maximum size in bytes of an uploaded photo.
268                 'maximagesize' => 800000,
269
270                 // memcache_host (String)
271                 // Host name of the memcache daemon.
272                 'memcache_host' => '127.0.0.1',
273
274                 // memcache_port (Integer)
275                 // Port number of the memcache daemon.
276                 'memcache_port' => 11211,
277
278                 // memcached_hosts (Array)
279                 // Array of Memcached servers info [host, port(, weight)], see Memcached::addServers.
280                 'memcached_hosts' => [
281                         ['127.0.0.1', '11211'],
282                 ],
283
284                 // min_poll_interval (Integer)
285                 // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
286                 'min_poll_interval' => 1,
287
288                 // no_count (Boolean)
289                 // Don't do count calculations (currently only when showing photo albums).
290                 'no_count' => false,
291
292                 // no_oembed (Boolean)
293                 // Don't use OEmbed to fetch more information about a link.
294                 'no_oembed' => false,
295
296                 // no_smilies (Boolean)
297                 // Don't show smilies.
298                 'no_smilies' => false,
299
300                 // no_view_full_size (Boolean)
301                 // Don't add the link "View full size" under a resized image.
302                 'no_view_full_size' => false,
303
304                 // optimize_items (Boolean)
305                 // Triggers an SQL command to optimize the item table before expiring items.
306                 'optimize_items' => false,
307
308                 // paranoia (Boolean)
309                 // Log out users if their IP address changed.
310                 'paranoia' => false,
311
312                 // permit_crawling (Boolean)
313                 // Restricts the search for not logged in users to one search per minute.
314                 'permit_crawling' => false,
315
316                 // pidfile (Path)
317                 // Daemon pid file path. For example: pidfile = /path/to/daemon.pid
318                 'pidfile' => '',
319
320                 // png_quality (Integer)
321                 // Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
322                 'png_quality' => 8,
323
324                 // profiler (Boolean)
325                 // Enable internal timings to help optimize code. Needed for "rendertime" addon.
326                 'profiler' => false,
327
328                 // proxy_cache_time (Integer)
329                 // Period in seconds after which the cache is cleared.
330                 'proxy_cache_time' => 86400,
331
332                 // pushpoll_frequency (Integer)
333                 // Frequency of contact poll for subhub contact using the DFRM or OStatus network.
334                 // Available values:
335                 // - 5 = every month
336                 // - 4 = every week
337                 // - 3 = every day
338                 // - 2 = twice a day
339                 // - 1 = every hour
340                 // - 0 = every minute
341                 'pushpoll_frequency' => 3,
342
343                 // queue_no_dead_check (Boolean)
344                 // Ignore if the target contact or server seems to be dead during queue delivery.
345                 'queue_no_dead_check' => false,
346
347                 // redis_host (String)
348                 // Host name of the redis daemon.
349                 'redis_host' => '127.0.0.1',
350
351                 // redis_port (String)
352                 // Port number of the redis daemon.
353                 'redis_port' => 6379,
354
355                 // redis_db (Integer)
356                 // The sub-database of redis (0 - 15 possible sub-databases)
357                 'redis_db' => 0,
358
359                 // redis_password (String)
360                 // The authentication password for the redis database
361                 'redis_password' => null,
362
363                 // session_handler (database|cache|native)
364                 // Whether to use Cache to store session data or to use PHP native session storage.
365                 'session_handler' => 'database',
366
367                 // remove_multiplicated_lines (Boolean)
368                 // If enabled, multiple linefeeds in items are stripped to a single one.
369                 'remove_multiplicated_lines' => false,
370
371                 // sendmail_params (Boolean)
372                 // Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
373                 // This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
374                 // Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
375                 'sendmail_params' => true,
376
377                 // show_global_community_hint (Boolean)
378                 // 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.
379                 'show_global_community_hint' => false,
380
381                 // show_received (Boolean)
382                 // Show the receive data along with the post creation date
383                 'show_received' => true,
384
385                 // show_received_seconds (Integer)
386                 // Display the received date when the difference between received and created is higher than this.
387                 'show_received_seconds' => 500,
388
389                 // show_unsupported_addons (Boolean)
390                 // Show all addons including the unsupported ones.
391                 'show_unsupported_addons' => false,
392
393                 // show_unsupported_themes (Boolean)
394                 // Show all themes including the unsupported ones.
395                 'show_unsupported_themes' => false,
396
397                 // throttle_limit_day (Integer)
398                 // Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
399                 'throttle_limit_day' => 0,
400
401                 // throttle_limit_week (Integer)
402                 // Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
403                 'throttle_limit_week' => 0,
404
405                 // throttle_limit_month (Integer)
406                 // Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
407                 'throttle_limit_month' => 0,
408
409                 // username_min_length (Integer)
410                 // The minimum character length a username can be.
411                 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
412                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
413                 'username_min_length' => 3,
414
415                 // username_max_length (Integer)
416                 // The maximum character length a username can be.
417                 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
418                 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
419                 'username_max_length' => 48,
420
421                 // worker_cooldown (Integer)
422                 // Cooldown period in seconds after each worker function call.
423                 'worker_cooldown' => 0,
424
425                 // worker_debug (Boolean)
426                 // If enabled, it prints out the number of running processes split by priority.
427                 'worker_debug' => false,
428
429                 // worker_fetch_limit (Integer)
430                 // Number of worker tasks that are fetched in a single query.
431                 'worker_fetch_limit' => 1,
432
433                 // worker_jpm (Boolean)
434                 // If enabled, it prints out the jobs per minute.
435                 'worker_jpm' => false,
436
437                 // worker_jpm_range (String)
438                 // List of minutes for the jobs per minute (JPM) calculation
439                 'worker_jpm_range' => '1, 10, 60',
440
441                 // worker_load_exponent (Integer)
442                 // Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
443                 // For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
444                 // Setting 0 would allow maximum worker queues at all times, which is not recommended.
445                 'worker_load_exponent' => 3,
446
447                 // worker_defer_limit (Integer)
448                 // Per default the systems tries delivering for 15 times before dropping it.
449                 'worker_defer_limit' => 15,
450
451                 // xrd_timeout (Integer)
452                 // Timeout in seconds for fetching the XRD links.
453                 'xrd_timeout' => 20,
454         ],
455         'experimental' => [
456                 // exp_themes (Boolean)
457                 // Show experimental themes in user settings.
458                 'exp_themes' => false,
459         ],
460         'theme' => [
461                 // hide_eventlist (Boolean)
462                 // Don't show the birthdays and events on the profile and network page.
463                 'hide_eventlist' => false,
464         ],
465         'jabber' => [
466                 // debug (Boolean)
467                 // Enable debug level for the jabber account synchronisation.
468                 'debug' => false,
469                 // lockpath (Path)
470                 // Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
471                 'lockpath' => '',
472         ],
473         'debug' => [
474                 // ap_inbox_log (Boolean)
475                 // Logs every call to /inbox as a JSON file in Friendica's temporary directory
476                 'ap_inbox_log' => false,
477
478                 // total_ap_delivery (Boolean)
479                 // Deliver via AP to every possible receiver and we suppress the delivery to these contacts with other protocols
480                 'total_ap_delivery' => false,
481         ]
482 ];