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