5 /* This file declares the default values for the base config of Friendica.
7 * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php
9 * Please don't edit this file directly as its content may change in the upcoming versions.
15 // Hostname or IP address of the database server.
16 // Can contain the port number with the syntax "hostname:port".
20 // Database user name. Please don't use "root".
24 // Database user password. Please don't use empty passwords.
32 // Database connexion charset. Changing this value will likely corrupt special characters.
33 'charset' => 'utf8mb4',
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.
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' => '',
45 // max_import_size (Integer)
46 // Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
47 'max_import_size' => 200000,
50 // Location of PHP command line processor.
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'],
58 // always_show_preview (Boolean)
59 // Only show small preview pictures.
60 'always_show_preview' => false,
62 // archival_days (Integer)
63 // Number of days that we try to deliver content before we archive a contact.
64 'archival_days' => 32,
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,
71 // block_local_dir (Boolean)
72 // Deny public access to the local user directory.
73 'block_local_dir' => false,
75 // cache_driver (database|memcache|memcached|redis)
76 // Whether to use Memcache or Memcached or Redis to store temporary cache.
77 'cache_driver' => 'database',
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',
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,
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,
92 // Name of a logfile to log slow database queries.
95 // db_log_index (Path)
96 // Name of a logfile to log queries with bad indexes.
99 // db_log_index_watch (Comma-separated list)
100 // Watchlist of indexes to watch.
101 'db_log_index_watch' => '',
103 // db_log_index_blacklist (Comma-separated list)
104 // Blacklist of indexes that shouldn't be watched.
105 'db_log_index_blacklist' => '',
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.
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,
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,
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,
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,
130 // diaspora_test (Boolean)
131 // For development only. Disables the message transfer.
132 'diaspora_test' => false,
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,
138 // disable_mentions_removal (Boolean)
139 // Disables the automatic removal of implicit mentions in ActivityPub postings.
140 'disable_mentions_removal' => false,
142 // disable_url_validation (Boolean)
143 // Disables the DNS lookup of an URL.
144 'disable_url_validation' => false,
146 // disable_password_exposed (Boolean)
147 // Disable the exposition check against the remote haveibeenpwned API on password change.
148 'disable_password_exposed' => false,
150 // disable_polling (Boolean)
151 // Disable the polling of DFRN and OStatus contacts through onepoll.php.
152 'disable_polling' => false,
155 // location of the developer log file.
159 // restricts develop log writes to requests originating from this IP address.
162 // free_crawls (Integer)
163 // Number of "free" searches when system => permit_crawling is enabled.
166 // frontend_worker_timeout (Integer)
167 // Value in minutes after we think that a frontend task was killed by the webserver.
168 'frontend_worker_timeout' => 10,
170 // groupedit_image_limit (Integer)
171 // Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names.
172 // This can alternatively be set on a per account basis in the pconfig table.
173 'groupedit_image_limit' => 400,
176 // Enables the sending of HTTP Strict Transport Security headers.
179 // ignore_cache (Boolean)
180 // For development only. Disables the item cache.
181 'ignore_cache' => false,
183 // instances_social_key (String)
184 // Key to the API of https://instances.social which retrieves data about mastodon servers.
185 // See https://instances.social/api/token to get an API key.
186 'instances_social_key' => '',
188 // ipv4_resolve (Boolean)
189 // Resolve IPV4 addresses only. Don't resolve to IPV6.
190 'ipv4_resolve' => false,
192 // invitation_only (Boolean)
193 // If set true registration is only possible after a current member of the node has send an invitation.
194 'invitation_only' => false,
196 // like_no_comment (Boolean)
197 // Don't update the "commented" value of an item when it is liked.
198 'like_no_comment' => false,
200 // local_block (Boolean)
201 // Used in conjunction with "block_public".
202 'local_block' => false,
204 // local_search (Boolean)
205 // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
206 'local_search' => false,
208 // local_tags (Boolean)
209 // If activated, all hashtags will point to the local server.
210 'local_tags' => false,
212 // max_batch_queue (Integer)
213 // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
214 'max_batch_queue' => 1000,
216 // max_connections (Integer)
217 // The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
218 // When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
219 'max_connections' => 0,
221 // max_connections_level (Integer 0-100)
222 // The maximum percentage of connections that are allowed to let the worker start.
223 'max_connections_level' => 75,
225 // max_contact_queue (Integer)
226 // Maximum number of queue items for a single contact before subsequent messages are discarded.
227 'max_contact_queue' => 500,
229 // max_image_length (Integer)
230 // An alternate way of limiting picture upload sizes.
231 // Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
232 // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
233 // If you don't want to set a maximum length, set to -1.
234 'max_image_length' => -1,
236 // max_processes_backend (Integer)
237 // Maximum number of concurrent database processes for background tasks.
238 'max_processes_backend' => 5,
240 // max_processes_frontend (Integer)
241 // Maximum number of concurrent database processes for foreground tasks.
242 'max_processes_frontend' => 20,
244 // maximagesize (Integer)
245 // Maximum size in bytes of an uploaded photo.
246 'maximagesize' => 800000,
248 // memcache_host (String)
249 // Host name of the memcache daemon.
250 'memcache_host' => '127.0.0.1',
252 // memcache_port (Integer)
253 // Port number of the memcache daemon.
254 'memcache_port' => 11211,
256 // memcached_hosts (Array)
257 // Array of Memcached servers info [host, port(, weight)], see Memcached::addServers.
258 'memcached_hosts' => [
259 ['127.0.0.1', '11211'],
262 // min_poll_interval (Integer)
263 // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
264 'min_poll_interval' => 1,
266 // no_count (Boolean)
267 // Don't do count calculations (currently only when showing photo albums).
270 // no_oembed (Boolean)
271 // Don't use OEmbed to fetch more information about a link.
272 'no_oembed' => false,
274 // no_smilies (Boolean)
275 // Don't show smilies.
276 'no_smilies' => false,
278 // no_view_full_size (Boolean)
279 // Don't add the link "View full size" under a resized image.
280 'no_view_full_size' => false,
282 // optimize_items (Boolean)
283 // Triggers an SQL command to optimize the item table before expiring items.
284 'optimize_items' => false,
286 // paranoia (Boolean)
287 // Log out users if their IP address changed.
290 // permit_crawling (Boolean)
291 // Restricts the search for not logged in users to one search per minute.
292 'permit_crawling' => false,
295 // Daemon pid file path. For example: pidfile = /path/to/daemon.pid
298 // png_quality (Integer)
299 // Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
302 // profiler (Boolean)
303 // Enable internal timings to help optimize code. Needed for "rendertime" addon.
306 // proxy_cache_time (Integer)
307 // Period in seconds after which the cache is cleared.
308 'proxy_cache_time' => 86400,
310 // pushpoll_frequency (Integer)
311 // Frequency of contact poll for subhub contact using the DFRM or OStatus network.
318 // - 0 = every minute
319 'pushpoll_frequency' => 3,
321 // queue_no_dead_check (Boolean)
322 // Ignore if the target contact or server seems to be dead during queue delivery.
323 'queue_no_dead_check' => false,
325 // redis_host (String)
326 // Host name of the redis daemon.
327 'redis_host' => '127.0.0.1',
329 // redis_port (String)
330 // Port number of the redis daemon.
331 'redis_port' => 6379,
333 // session_handler (database|cache|native)
334 // Whether to use Cache to store session data or to use PHP native session storage.
335 'session_handler' => 'database',
337 // remove_multiplicated_lines (Boolean)
338 // If enabled, multiple linefeeds in items are stripped to a single one.
339 'remove_multiplicated_lines' => false,
341 // sendmail_params (Boolean)
342 // Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
343 // This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
344 // Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
345 'sendmail_params' => true,
347 // show_global_community_hint (Boolean)
348 // 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.
349 'show_global_community_hint' => false,
351 // show_unsupported_addons (Boolean)
352 // Show all addons including the unsupported ones.
353 'show_unsupported_addons' => false,
355 // show_unsupported_themes (Boolean)
356 // Show all themes including the unsupported ones.
357 'show_unsupported_themes' => false,
359 // throttle_limit_day (Integer)
360 // Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
361 'throttle_limit_day' => 0,
363 // throttle_limit_week (Integer)
364 // Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
365 'throttle_limit_week' => 0,
367 // throttle_limit_month (Integer)
368 // Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
369 'throttle_limit_month' => 0,
372 // If you are using a subdirectory of your domain you will need to put the relative path (from the root of your domain) here.
373 // For instance if your URL is 'http://example.com/directory/subdirectory', set urlpath to 'directory/subdirectory'.
376 // username_min_length (Integer)
377 // The minimum character length a username can be.
378 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
379 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
380 'username_min_length' => 3,
382 // username_max_length (Integer)
383 // The maximum character length a username can be.
384 // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
385 // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
386 'username_max_length' => 48,
388 // worker_cooldown (Integer)
389 // Cooldown period in seconds after each worker function call.
390 'worker_cooldown' => 0,
392 // worker_debug (Boolean)
393 // If enabled, it prints out the number of running processes split by priority.
394 'worker_debug' => false,
396 // worker_fetch_limit (Integer)
397 // Number of worker tasks that are fetched in a single query.
398 'worker_fetch_limit' => 1,
400 // worker_jpm (Boolean)
401 // If enabled, it prints out the jobs per minute.
402 'worker_jpm' => false,
404 // worker_jpm_range (String)
405 // List of minutes for the jobs per minute (JPM) calculation
406 'worker_jpm_range' => '1, 10, 60',
408 // worker_load_exponent (Integer)
409 // Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
410 // For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
411 // Setting 0 would allow maximum worker queues at all times, which is not recommended.
412 'worker_load_exponent' => 3,
414 // xrd_timeout (Integer)
415 // Timeout in seconds for fetching the XRD links.
419 // exp_themes (Boolean)
420 // Show experimental themes in user settings.
421 'exp_themes' => false,
424 // hide_eventlist (Boolean)
425 // Don't show the birthdays and events on the profile and network page.
426 'hide_eventlist' => false,
430 // Enable debug level for the jabber account synchronisation.
433 // Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
437 // ap_inbox_log (Boolean)
438 // Logs every call to /inbox as a JSON file in Friendica's temporary directory
439 'ap_inbox_log' => false,
441 // total_ap_delivery (Boolean)
442 // Deliver via AP to every possible receiver and we suppress the delivery to these contacts with other protocols
443 'total_ap_delivery' => false,