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