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