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