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