Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaults.config.php 17KB

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