Replace system.proc_windows config by PHP_OS test
[friendica.git/.git] / config / defaults.ini.php
1 <?php return <<<INI
2
3 ; This file declares the default values for all the config values of Friendica.
4 ; Please don't edit this file as its content may change in the upcoming versions.
5
6 [database]
7
8 ; host (String)
9 ; Hostname or IP address of the database server.
10 ; Can contain the port number with the syntax "hostname:port".
11 hostname =
12
13 ; user (String)
14 ; Database user name. Please don't use "root".
15 username =
16
17 ; pass (String)
18 ; Database user password. Please don't use empty passwords.
19 password =
20
21 ; base (String)
22 ; Database name.
23 database =
24
25 ; charset (String)
26 ; Database connexion charset. Changing this value will likely corrupt special characters.
27 charset = utf8mb4
28
29 [config]
30
31 ; admin_email (Comma-separated list)
32 ; In order to perform system administration via the admin panel, this must precisely match the email address of the person logged in.
33 admin_email =
34
35 ; max_import_size (Integer)
36 ; Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
37 max_import_size = 200000
38
39 ; php_path (String)
40 ; Location of PHP command line processor
41 php_path = php
42
43 ; register_policy (Constant)
44 ; Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
45 ; Be certain to create your own personal account before setting REGISTER_CLOSED.
46 ; REGISTER_APPROVE requires you set system.admin_email to the email address of an already registered person who can authorise
47 ; and/or approve/deny the request.
48 register_policy = REGISTER_CLOSED
49
50 ; register_text (String)
51 ; Will be displayed prominently on the registration page.
52 register_text = ''
53
54 ; sitename (String)
55 ; Displayed server name
56 sitename = "Friendica Social Network"
57
58 [system]
59
60 ; account_abandon_days (Integer)
61 ; Will not waste system resources polling external sites for abandonded accounts.
62 ; Enter 0 for no time limit.
63 account_abandon_days = 0
64
65 ; addon (Comma-separated list)
66 ; Manual list of addons which are enabled on this system.
67 addon =
68
69 ; allowed_link_protocols (Array)
70 ; Allowed protocols in links URLs, add at your own risk. http is always allowed.
71 allowed_link_protocols[] = ftp
72 allowed_link_protocols[] = ftps
73 allowed_link_protocols[] = mailto
74 allowed_link_protocols[] = cid
75 allowed_link_protocols[] = gopher
76
77 ; always_show_preview (Boolean)
78 ; Only show small preview picures.
79 always_show_preview = false
80
81 ; archival_days (Integer)
82 ; Number of days that we try to deliver content before we archive a contact.
83 archival_days = 32
84
85 ; auth_cookie_lifetime (Integer)
86 ; Number of days that should pass without any activity before a user who chose "Remember me" when logging in is considered logged out.
87 auth_cookie_lifetime = 7
88
89 ; block_local_dir (Boolean)
90 ; Deny public access to the local user directory.
91 block_local_dir = false
92
93 ; config_adapter (jit|preload)
94 ; Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
95 config_adapter = jit
96
97 ; curl_range_bytes (Integer)
98 ; Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
99 curl_range_bytes = 0
100
101 ; db_log (Path)
102 ; Name of a logfile to log slow database queries
103 db_log =
104
105 ; db_loglimit (Integer)
106 ; If a database call lasts longer than this value in seconds it is logged.
107 ; Inactive if system.db_log is empty
108 db_loglimit = 10
109
110 ; db_log_index (Path)
111 ; Name of a logfile to log queries with bad indexes
112 db_log_index =
113
114 ; db_log_index_watch (Comma-separated list)
115 ; Watchlist of indexes to watch
116 db_log_index_watch =
117
118 ; db_loglimit_index (Integer)
119 ; Number of index rows needed to be logged for indexes on the watchlist. 0 to disable.
120 db_loglimit_index = 0
121
122 ; db_loglimit_index_high (Integer)
123 ; Number of index rows to be logged anyway (for any index). 0 to disable.
124 db_loglimit_index_high = 0
125
126 ; db_log_index_blacklist (Comma-separated list)
127 ; Blacklist of indexes that shouldn't be watched
128 db_log_index_blacklist =
129
130 ; dbclean_expire_conversation (Integer)
131 ; When DBClean is enabled, any entry in the conversation table will be deleted after this many days.
132 ; These data are normally needed only for debugging purposes and they are safe to delete.
133 dbclean_expire_conversation = 90
134
135 ; default_timezone (String)
136 ; Choose a default timezone. See https://secure.php.net/manual/en/timezones.php
137 ; It only applies to timestamps for anonymous viewers.
138 default_timezone = UTC
139
140 ; diaspora_test (Boolean)
141 ; For development only. Disables the message transfer.
142 diaspora_test = false
143
144 ; disable_email_validation (Boolean)
145 ; Disables the check if a mail address is in a valid format and can be resolved via DNS.
146 disable_email_validation = false
147
148 ; disable_url_validation (Boolean)
149 ; Disables the DNS lookup of an URL.
150 disable_url_validation = false
151
152 ; disable_password_exposed (Boolean)
153 ; Disable the exposition check against the remote haveibeenpwned API on password change.
154 disable_password_exposed = false
155
156 ; dlogfile (Path)
157 ; location of the developer log file
158 dlogfile =
159
160 ; dlogip (String)
161 ; restricts develop log writes to requests originating from this IP address
162 dlogip =
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 ; jpeg_quality (Integer)
195 ; Sets the ImageMagick quality level for JPEG images. Values ranges from 50 (awful) to 100 (near perfect).
196 jpeg_quality = 100
197
198 ; language (String)
199 ; Admin-created user default language.
200 ; Two-letters ISO 639-1 code.
201 language = en
202
203 ; like_no_comment (Boolean)
204 ; Don't update the "commented" value of an item when it is liked.
205 like_no_comment = false
206
207 ; local_block (Boolean)
208 ; Used in conjunction with "block_public".
209 local_block = false
210
211 ; local_search (Boolean)
212 ; Blocks search for users who are not logged in to prevent crawlers from blocking your system.
213 local_search = false
214
215 ; local_tags (Boolean)
216 ; If activated, all hashtags will point to the local server.
217 local_tags = false
218
219 ; max_connections (Integer)
220 ; The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
221 ; When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
222 max_connections = 0
223
224 ; max_connections_level (Integer 0-100)
225 ; The maximum percentage of connections that are allowed to let the worker start.
226 max_connections_level = 75
227
228 ; max_contact_queue (Integer)
229 ; Maximum number of queue items for a single contact before subsequent messages are discarded.
230 max_contact_queue = 500
231
232 ; max_batch_queue (Integer)
233 ; Maximum number of batched queue items for a single contact before subsequent messages are discarded.
234 max_batch_queue = 1000
235
236 ; max_image_length (Integer)
237 ; An alternate way of limiting picture upload sizes.
238 ; Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
239 ; Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
240 ; If you don't want to set a maximum length, set to -1.
241 max_image_length = -1
242
243 ; max_processes_backend (Integer)
244 ; Maximum number of concurrent database processes for background tasks.
245 max_processes_backend = 5
246
247 ; max_processes_frontend (Integer)
248 ; Maximum number of concurrent database processes for foreground tasks.
249 max_processes_frontend = 20
250
251 ; maximagesize (Integer)
252 ; Maximum size in bytes of an uploaded photo.
253 maximagesize = 800000
254
255 ; min_poll_interval (Integer)
256 ; minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
257 min_poll_interval = 1
258
259 ; no_regfullname (Boolean)
260 ; Allow pseudonyms (true) or enforce a space between firstname and lastname in Full name, as an antispam measure (false).
261 no_regfullname = true
262
263 ; session_handler (database|cache|native)
264 ; Whether to use Cache to store session data or to use PHP native session storage.
265 session_handler = database
266
267 ; cache_driver (database|memcache|memcached|redis)
268 ; Whether to use Memcache or Memcached or Redis to store temporary cache.
269 cache_driver = database
270
271 ; memcache_host (String)
272 ; Host name of the memcache daemon.
273 memcache_host = 127.0.0.1
274
275 ; memcache_port (Integer)
276 ; Port number of the memcache daemon.
277 memcache_port = 11211
278
279 ; memcached_hosts (Array)
280 ; Array of Memcached servers info "host, port(, weight)".
281 memcached_hosts[] = 127.0.0.1, 11211
282
283 ; redis_host (String)
284 ; Host name of the redis daemon.
285 redis_host = 127.0.0.1
286
287 ; redis_port (String)
288 ; Port number of the redis daemon.
289 redis_port = 6379
290
291 ; no_count (Boolean)
292 ; Don't do count calculations (currently only when showing albums)
293 no_count = false
294
295 ; no_oembed (Boolean)
296 ; Don't use OEmbed to fetch more information about a link.
297 no_oembed = false
298
299 ; no_smilies (Boolean)
300 ; Don't show smilies.
301 no_smilies = false
302
303 ; no_view_full_size (Boolean)
304 ; Don't add the link "View full size" under a resized image.
305 no_view_full_size = false
306
307 ; optimize_items (Boolean)
308 ; Triggers an SQL command to optimize the item table before expiring items.
309 optimize_items = false
310
311 ; pidfile (Path)
312 ; Daemon pid file path. For example: pidfile = /path/to/daemon.pid
313 pidfile =
314
315 ; urlpath (String)
316 ; If you are using a subdirectory of your domain you will need to put the relative path (from the root of your domain) here.
317 ; For instance if your URL is 'http://example.com/directory/subdirectory', set urlpath to 'directory/subdirectory'.
318 urlpath =
319
320 ; paranoia (Boolean)
321 ; Log out users if their IP address changed.
322 paranoia = false
323
324 ; permit_crawling (Boolean)
325 ; Restricts the search for not logged in users to one search per minute.
326 permit_crawling = false
327
328 ; free_crawls (Integer)
329 ; Number of "free" searches when "permit_crawling" is activated.
330 free_crawls = 10
331
332 ; crawl_permit_period (Integer)
333 ; Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
334 crawl_permit_period = 60
335
336 ; queue_no_dead_check (Boolean)
337 ; Ignore if the target contact or server seems to be dead during queue delivery.
338 queue_no_dead_check = false
339
340 ; rino_encrypt (Integer)
341 ; Server-to-server private message encryption (RINO).
342 ; Encryption will only be provided if this setting is set to a non zero value on both servers.
343 ; Set to 0 to disable, 2 to enable, 1 is deprecated but wont need mcrypt.
344 rino_encrypt = 2
345
346 ; worker_debug (Boolean)
347 ; If enabled, it prints out the number of running processes split by priority.
348 worker_debug = false
349
350 ; worker_fetch_limit (Integer)
351 ; Number of worker tasks that are fetched in a single query.
352 worker_fetch_limit = 1
353
354 ; profiler (Boolean)
355 ; Enable internal timings to help optimize code. Needed for "rendertime" addon.
356 profiler = false
357
358 ; png_quality (Integer)
359 ; Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
360 png_quality = 8
361
362 ; proxy_cache_time (Integer)
363 ; Period in seconds after which the cache is cleared.
364 proxy_cache_time = 86400
365
366 ; pushpoll_frequency (Integer)
367 ; Frequency of contact poll for subhub contact using the DFRM or OStatus network
368 ; Available values:
369 ; - 5 = every month
370 ; - 4 = every week
371 ; - 3 = every day
372 ; - 2 = twice a day
373 ; - 1 = every hour
374 ; - 0 = every minute
375 pushpoll_frequency = 3
376
377 ; remove_multiplicated_lines (Boolean)
378 ; If enabled, multiple linefeeds in items are stripped to a single one.
379 remove_multiplicated_lines = false
380
381 ; sendmail_params (Boolean)
382 ; Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
383 ; This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
384 ; Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
385 sendmail_params = true
386
387 ; show_unsupported_addons (Boolean)
388 ; Show all addons including the unsupported ones.
389 show_unsupported_addons = false
390
391 ; show_unsupported_themes (Boolean)
392 ; Show all themes including the unsupported ones.
393 show_unsupported_themes = false
394
395 ; show_global_community_hint (Boolean)
396 ; 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.
397 show_global_community_hint = false
398
399 ; allowed themes (Comma-separated list)
400 ; Themes users can change to in their settings
401 allowed_themes = 'quattro,vier,duepuntozero,smoothly'
402
403 ; theme (String)
404 ; System theme name
405 theme = vier
406
407 ; throttle_limit_day (Integer)
408 ; Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
409 throttle_limit_day = 0
410
411 ; throttle_limit_week (Integer)
412 ; Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
413 throttle_limit_week = 0
414
415 ; throttle_limit_month (Integer)
416 ; Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
417 throttle_limit_month = 0
418
419 ; worker_cooldown (Integer)
420 ; Cooldown period in seconds after each worker function call.
421 worker_cooldown = 0
422
423 ; worker_load_exponent (Integer)
424 ; Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
425 ; For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
426 ; Setting 0 would allow maximum worker queues at all times, which is not recommended.
427 worker_load_exponent = 3
428
429 ; directory (String)
430 ; URL of the global directory
431 directory = https://dir.friendi.social
432
433 ; xrd_timeout (Integer)
434 ; Timeout in seconds for fetching the XRD links.
435 xrd_timeout = 20
436
437 [experimental]
438
439 ; exp_themes (Boolean)
440 ; Show experimental themes in user settings.
441 exp_themes = false
442
443 [theme]
444
445 ; hide_eventlist (Boolean)
446 ; Don't show the birthdays and events on the profile and network page
447 hide_eventlist = false
448
449 [jabber]
450
451 ; debug (Boolean)
452 ; Enable debug level for the jabber account synchronisation.
453 debug = false
454
455 ; lockpath (Path)
456 ; Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
457 lockpath =
458
459 INI;
460 // Keep this line