]> git.mxchange.org Git - friendica.git/blob - config/config.ini.php
05a8738e9d9f6cb36ae89b303283efee70d1db43
[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 ; These data are normally needed only for debugging purposes and they are safe to delete.
125 dbclean_expire_conversation = 90
126
127 ; diaspora_test (Boolean)
128 ; For development only. Disables the message transfer.
129 diaspora_test = false
130
131 ; disable_email_validation (Boolean)
132 ; Disables the check if a mail address is in a valid format and can be resolved via DNS.
133 disable_email_validation = false
134
135 ; disable_url_validation (Boolean)
136 ; Disables the DNS lookup of an URL.
137 disable_url_validation = false
138
139 ; disable_password_exposed (Boolean)
140 ; Disable the exposition check against the remote haveibeenpwned API on password change.
141 disable_password_exposed = false
142
143 ; disable_polling (Boolean)
144 ; Disable the polling of DFRN and OStatus contacts through onepoll.php.
145 disable_polling = false
146
147 ; dlogfile (Path)
148 ; location of the developer log file.
149 dlogfile =
150
151 ; dlogip (String)
152 ; restricts develop log writes to requests originating from this IP address.
153 dlogip =
154
155 ; free_crawls (Integer)
156 ; Number of "free" searches when system.permit_crawling is activated.
157 free_crawls = 10
158
159 ; frontend_worker_timeout (Integer)
160 ; Value in minutes after we think that a frontend task was killed by the webserver.
161 frontend_worker_timeout = 10
162
163 ; groupedit_image_limit (Integer)
164 ; Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names.
165 ; This can alternatively be set on a per account basis in the pconfig table.
166 groupedit_image_limit = 400
167
168 ; hsts (Boolean)
169 ; Enables the sending of HTTP Strict Transport Security headers.
170 hsts = false
171
172 ; ignore_cache (Boolean)
173 ; For development only. Disables the item cache.
174 ignore_cache = false
175
176 ; instances_social_key (String)
177 ; Key to the API of https://instances.social which retrieves data about mastodon servers.
178 ; See https://instances.social/api/token to get an API key.
179 instances_social_key =
180
181 ; ipv4_resolve (Boolean)
182 ; Resolve IPV4 addresses only. Don't resolve to IPV6.
183 ipv4_resolve = false
184
185 ; invitation_only (Boolean)
186 ; If set true registration is only possible after a current member of the node has send an invitation.
187 invitation_only = false
188
189 ; like_no_comment (Boolean)
190 ; Don't update the "commented" value of an item when it is liked.
191 like_no_comment = false
192
193 ; local_block (Boolean)
194 ; Used in conjunction with "block_public".
195 local_block = false
196
197 ; local_search (Boolean)
198 ; Blocks search for users who are not logged in to prevent crawlers from blocking your system.
199 local_search = false
200
201 ; local_tags (Boolean)
202 ; If activated, all hashtags will point to the local server.
203 local_tags = false
204
205 ; max_batch_queue (Integer)
206 ; Maximum number of batched queue items for a single contact before subsequent messages are discarded.
207 max_batch_queue = 1000
208
209 ; max_connections (Integer)
210 ; The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
211 ; When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
212 max_connections = 0
213
214 ; max_connections_level (Integer 0-100)
215 ; The maximum percentage of connections that are allowed to let the worker start.
216 max_connections_level = 75
217
218 ; max_contact_queue (Integer)
219 ; Maximum number of queue items for a single contact before subsequent messages are discarded.
220 max_contact_queue = 500
221
222 ; max_image_length (Integer)
223 ; An alternate way of limiting picture upload sizes.
224 ; Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
225 ; Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
226 ; If you don't want to set a maximum length, set to -1.
227 max_image_length = -1
228
229 ; max_processes_backend (Integer)
230 ; Maximum number of concurrent database processes for background tasks.
231 max_processes_backend = 5
232
233 ; max_processes_frontend (Integer)
234 ; Maximum number of concurrent database processes for foreground tasks.
235 max_processes_frontend = 20
236
237 ; maximagesize (Integer)
238 ; Maximum size in bytes of an uploaded photo.
239 maximagesize = 800000
240
241 ; memcache_host (String)
242 ; Host name of the memcache daemon.
243 memcache_host = 127.0.0.1
244
245 ; memcache_port (Integer)
246 ; Port number of the memcache daemon.
247 memcache_port = 11211
248
249 ; memcached_hosts (Array)
250 ; Array of Memcached servers info "host, port(, weight)".
251 memcached_hosts[0] = 127.0.0.1,11211
252
253 ; min_poll_interval (Integer)
254 ; minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
255 min_poll_interval = 1
256
257 ; no_count (Boolean)
258 ; Don't do count calculations (currently only when showing albums).
259 no_count = false
260
261 ; no_oembed (Boolean)
262 ; Don't use OEmbed to fetch more information about a link.
263 no_oembed = false
264
265 ; no_smilies (Boolean)
266 ; Don't show smilies.
267 no_smilies = false
268
269 ; no_view_full_size (Boolean)
270 ; Don't add the link "View full size" under a resized image.
271 no_view_full_size = false
272
273 ; optimize_items (Boolean)
274 ; Triggers an SQL command to optimize the item table before expiring items.
275 optimize_items = false
276
277 ; paranoia (Boolean)
278 ; Log out users if their IP address changed.
279 paranoia = false
280
281 ; permit_crawling (Boolean)
282 ; Restricts the search for not logged in users to one search per minute.
283 permit_crawling = false
284
285 ; pidfile (Path)
286 ; Daemon pid file path. For example: pidfile = /path/to/daemon.pid
287 pidfile =
288
289 ; png_quality (Integer)
290 ; Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
291 png_quality = 8
292
293 ; profiler (Boolean)
294 ; Enable internal timings to help optimize code. Needed for "rendertime" addon.
295 profiler = false
296
297 ; proxy_cache_time (Integer)
298 ; Period in seconds after which the cache is cleared.
299 proxy_cache_time = 86400
300
301 ; pushpoll_frequency (Integer)
302 ; Frequency of contact poll for subhub contact using the DFRM or OStatus network.
303 ; Available values:
304 ; - 5 = every month
305 ; - 4 = every week
306 ; - 3 = every day
307 ; - 2 = twice a day
308 ; - 1 = every hour
309 ; - 0 = every minute
310 pushpoll_frequency = 3
311
312 ; queue_no_dead_check (Boolean)
313 ; Ignore if the target contact or server seems to be dead during queue delivery.
314 queue_no_dead_check = false
315
316 ; redis_host (String)
317 ; Host name of the redis daemon.
318 redis_host = 127.0.0.1
319
320 ; redis_port (String)
321 ; Port number of the redis daemon.
322 redis_port = 6379
323
324 ; session_handler (database|cache|native)
325 ; Whether to use Cache to store session data or to use PHP native session storage.
326 session_handler = database
327
328 ; remove_multiplicated_lines (Boolean)
329 ; If enabled, multiple linefeeds in items are stripped to a single one.
330 remove_multiplicated_lines = false
331
332 ; sendmail_params (Boolean)
333 ; Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
334 ; This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
335 ; Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
336 sendmail_params = true
337
338 ; show_global_community_hint (Boolean)
339 ; 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.
340 show_global_community_hint = false
341
342 ; show_unsupported_addons (Boolean)
343 ; Show all addons including the unsupported ones.
344 show_unsupported_addons = false
345
346 ; show_unsupported_themes (Boolean)
347 ; Show all themes including the unsupported ones.
348 show_unsupported_themes = false
349
350 ; throttle_limit_day (Integer)
351 ; Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
352 throttle_limit_day = 0
353
354 ; throttle_limit_week (Integer)
355 ; Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
356 throttle_limit_week = 0
357
358 ; throttle_limit_month (Integer)
359 ; Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
360 throttle_limit_month = 0
361
362 ; urlpath (String)
363 ; If you are using a subdirectory of your domain you will need to put the relative path (from the root of your domain) here.
364 ; For instance if your URL is 'http://example.com/directory/subdirectory', set urlpath to 'directory/subdirectory'.
365 urlpath =
366
367 ; username_min_length (Integer)
368 ; The minimum character length a username can be.
369 ; This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
370 ; Minimum for this config value is 1. Maximum is 255;
371 username_min_length = 3
372
373 ; username_max_length (Integer)
374 ; The maximum character length a username can be.
375 ; This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
376 ; Minimum for this config value is 1. Maximum is 255;
377 username_max_length = 48
378
379 ; worker_cooldown (Integer)
380 ; Cooldown period in seconds after each worker function call.
381 worker_cooldown = 0
382
383 ; worker_debug (Boolean)
384 ; If enabled, it prints out the number of running processes split by priority.
385 worker_debug = false
386
387 ; worker_fetch_limit (Integer)
388 ; Number of worker tasks that are fetched in a single query.
389 worker_fetch_limit = 1
390
391 ; worker_load_exponent (Integer)
392 ; Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
393 ; For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
394 ; Setting 0 would allow maximum worker queues at all times, which is not recommended.
395 worker_load_exponent = 3
396
397 ; xrd_timeout (Integer)
398 ; Timeout in seconds for fetching the XRD links.
399 xrd_timeout = 20
400
401 [experimental]
402
403 ; exp_themes (Boolean)
404 ; Show experimental themes in user settings.
405 exp_themes = false
406
407 [theme]
408
409 ; hide_eventlist (Boolean)
410 ; Don't show the birthdays and events on the profile and network page.
411 hide_eventlist = false
412
413 [jabber]
414
415 ; debug (Boolean)
416 ; Enable debug level for the jabber account synchronisation.
417 debug = false
418
419 ; lockpath (Path)
420 ; Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
421 lockpath =
422
423 INI;
424 // Keep this line