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