3 * StatusNet, the distributed open-source microblogging tool
5 * Default settings for core configuration
9 * LICENCE: This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU Affero General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Affero General Public License for more details.
19 * You should have received a copy of the GNU Affero General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 * @author Evan Prodromou <evan@status.net>
25 * @copyright 2008-9 StatusNet, Inc.
26 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
27 * @link http://www.gnu.org/software/social/
32 array('name' => 'Just another GNU social node',
33 'nickname' => 'gnusocial',
41 'logperf' => false, // Enable to dump performance counters to syslog
42 'logperf_detail' => false, // Enable to dump every counter hit
44 'locale_path' => INSTALLDIR.'/locale',
47 'languages' => get_all_languages(),
49 array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : null,
50 'fakeaddressrecovery' => true,
53 'broughtbyurl' => null,
58 'sslproxy' => false, // set to true to force GNU social to think it is HTTPS (i.e. using reverse proxy to enable it)
60 'dupelimit' => 60, // default for same person saying the same thing
61 'textlimit' => 1000, // in chars; 0 == no limit
63 'use_x_sendfile' => false,
64 'notice' => null, // site wide notice text
65 'build' => 1, // build number, for code-dependent cache
68 array('hash_algos' => ['sha1', 'sha256', 'sha512'], // set to null for anything that hash_hmac() can handle (and is in hash_algos())
71 array('database' => null, // must be set
72 'schema_location' => INSTALLDIR . '/classes',
73 'class_location' => INSTALLDIR . '/classes',
74 'require_prefix' => 'classes/',
78 'db_driver' => 'DB', # XXX: JanRain libs only work with DB
79 'quote_identifiers' => false,
81 'schemacheck' => 'runtime', // 'runtime' or 'script'
82 'annotate_queries' => false, // true to add caller comments to queries, eg /* POST Notice::saveNew */
83 'log_queries' => false, // true to log all DB queries
84 'log_slow_queries' => 0, // if set, log queries taking over N seconds
85 'mysql_foreign_keys' => false), // if set, enables experimental foreign key support on MySQL
87 array('fancyurls' => true, // makes sure aliases in WebFinger etc. are not f'd by index.php/ URLs
88 'legacy_http' => false, // set this to true if you have upgraded your site from http=>https
91 'debugtrace' => false, // index.php handleError function, whether to include exception backtrace in log
94 array('appname' => 'statusnet', # for syslog
95 'priority' => 'debug', # XXX: currently ignored
96 'facility' => LOG_USER),
98 array('enabled' => true,
99 'daemon' => false, # Use queuedaemon. Default to false
100 'subsystem' => 'db', # default to database, or 'stomp'
101 'stomp_server' => null,
102 'queue_basename' => '/queue/statusnet/',
103 'control_channel' => '/topic/statusnet/control', // broadcasts to all queue daemons
104 'stomp_username' => null,
105 'stomp_password' => null,
106 'stomp_persistent' => true, // keep items across queue server restart, if persistence is enabled
107 'stomp_transactions' => true, // use STOMP transactions to aid in detecting failures (supported by ActiveMQ, but not by all)
108 'stomp_acks' => true, // send acknowledgements after successful processing (supported by ActiveMQ, but not by all)
109 'stomp_manual_failover' => true, // if multiple servers are listed, treat them as separate (enqueue on one randomly, listen on all)
110 'monitor' => null, // URL to monitor ping endpoint (work in progress)
111 'softlimit' => '90%', // total size or % of memory_limit at which to restart queue threads gracefully
112 'spawndelay' => 1, // Wait at least N seconds between (re)spawns of child processes to avoid slamming the queue server with subscription startup
113 'debug_memory' => false, // true to spit memory usage to log
114 'breakout' => array(), // List queue specifiers to break out when using Stomp queue.
115 // Default will share all queues for all sites within each group.
116 // Specify as <group>/<queue> or <group>/<queue>/<site>,
117 // using nickname identifier as site.
119 // 'main/distrib' separate "distrib" queue covering all sites
120 // 'xmpp/xmppout/mysite' separate "xmppout" queue covering just 'mysite'
121 'max_retries' => 10, // drop messages after N failed attempts to process (Stomp)
122 'dead_letter_dir' => false, // set to directory to save dropped messages into (Stomp)
125 array('type' => 'cc', # can be 'cc', 'allrightsreserved', 'private'
126 'owner' => null, # can be name of content owner e.g. for enterprise
127 'url' => 'https://creativecommons.org/licenses/by/3.0/',
128 'title' => 'Creative Commons Attribution 3.0',
129 'image' => $_path . '/theme/licenses/cc_by_3.0_80x15.png'),
131 array('backend' => 'mail',
133 'domain_check' => true),
135 array('blacklist' => array(),
136 'featured' => array()),
138 array('banned' => array(),
140 'changenick' => false,
141 'allowprivate' => false, // whether to allow setting stream to private ("only followers can read")
142 'backup' => false, // can cause DoS, so should be done via CLI
147 array('jpegquality' => 85),
149 array('server' => null,
150 'dir' => INSTALLDIR . '/avatar/',
151 'path' => $_path . '/avatar/',
156 'mbox_sha1sum' => false,
159 array('localonly' => false,
160 'blacklist' => array(),
161 'autosource' => array()),
163 array('server' => null,
168 array('linkcolor' => 'black',
169 'backgroundcolor' => 'black'),
171 array('enabled' => extension_loaded('zip')),
173 array('server' => null,
176 'bustframes' => true),
177 'local' => // To override path/server for themes in 'local' dir (not currently applied to local plugins)
178 array('server' => null,
183 array('enabled' => false, // whether to throttle edits; false by default
184 'count' => 20, // number of allowed messages in timespan
185 'timespan' => 600), // timespan for throttling
187 array('enabled' => true),
189 array('dropoff' => 864000.0, # controls weighting based on age
190 'cutoff' => 86400 * 90), # only look at notices posted in last 90 days
192 array('dropoff' => 864000.0, # controls weighting based on age
193 'cutoff' => 86400 * 90), # only look at notices favorited in last 90 days
195 array('piddir' => sys_get_temp_dir(),
199 array('enabled' => false),
201 array('enabled' => false),
203 array('enabled' => false),
205 array('source' => 'StatusNet', # source attribute for Twitter
206 'taguri' => null), # base for tag URIs
208 array('signin' => true,
209 'consumer_key' => null,
210 'consumer_secret' => null),
212 array('base' => null),
214 array('notify' => array(),
217 array('enabled' => true), # ignored after 0.9.x
219 array('default' => null,
222 // "bare" below means "without schema", like domain.com vs. https://domain.com
223 'bare_domains' => false, // convert domain.com to <a href="http://domain.com/" ...>domain.com</a> ?
224 'bare_ipv4' => false, // convert IPv4 addresses to hyperlinks?
225 'bare_ipv6' => false, // convert IPv6 addresses to hyperlinks?
228 array('server' => null,
229 'dir' => INSTALLDIR . '/file/',
230 'path' => $_path . '/file/',
234 'supported' => array(
235 'application/vnd.oasis.opendocument.chart' => 'odc',
236 'application/vnd.oasis.opendocument.formula' => 'odf',
237 'application/vnd.oasis.opendocument.graphics' => 'odg',
238 'application/vnd.oasis.opendocument.graphics-template' => 'otg',
239 'application/vnd.oasis.opendocument.image' => 'odi',
240 'application/vnd.oasis.opendocument.presentation' => 'odp',
241 'application/vnd.oasis.opendocument.presentation-template' => 'otp',
242 'application/vnd.oasis.opendocument.spreadsheet' => 'ods',
243 'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots',
244 'application/vnd.oasis.opendocument.text' => 'odt',
245 'application/vnd.oasis.opendocument.text-master' => 'odm',
246 'application/vnd.oasis.opendocument.text-template' => 'ott',
247 'application/vnd.oasis.opendocument.text-web' => 'oth',
248 'application/pdf' => 'pdf',
249 'application/zip' => 'zip',
250 'application/x-go-sgf' => 'sgf',
251 'application/xml' => 'xml',
252 'image/png' => 'png',
253 'image/jpeg' => 'jpg',
254 'image/gif' => 'gif',
255 'image/svg+xml' => 'svg',
256 'image/vnd.microsoft.icon' => 'ico',
257 'audio/ogg' => 'ogg',
258 'audio/mpeg' => 'mpg',
259 'audio/x-speex' => 'spx',
260 'application/ogg' => 'ogx',
261 'text/plain' => 'txt',
262 'video/mpeg' => 'mpeg',
263 'video/mp4' => 'mp4',
264 'video/ogg' => 'ogv',
265 'video/quicktime' => 'mov',
266 'video/webm' => 'webm',
268 'file_quota' => 5000000,
269 'user_quota' => 50000000,
270 'monthly_quota' => 15000000,
272 'show_html' => false, // show (filtered) text/html attachments (and oEmbed HTML etc.). Doesn't affect AJAX calls.
273 'show_thumbs' => true, // show thumbnails in notice lists for uploaded images, and photos and videos linked remotely that provide oEmbed info
274 'process_links' => true, // check linked resources for embeddable photos and videos; this will hit referenced external web sites when processing new messages.
277 'exe' => false, // this would deny any uploads to keep the "exe" file extension
281 'dir' => null, // falls back to File::path('thumb') (equivalent to ['attachments']['dir'] . '/thumb/')
282 'path' => null, // falls back to generating a URL with File::url('thumb/$filename') (equivalent to ['attachments']['path'] . '/thumb/')
283 'server' => null, // Only used if ['thumbnail']['path'] is NOT empty, and then it falls back to ['site']['server'], schema is decided from GNUsocial::useHTTPS()
285 'crop' => false, // overridden to true if thumb height === null
286 'maxsize' => 1000, // thumbs with an edge larger than this will not be generated
290 'animated' => false, // null="UseFileAsThumbnail", false="can use still frame". true requires ImageMagickPlugin
293 array('desclimit' => null),
295 array('maxaliases' => 3,
299 array('maxtags' => 100, // maximum number of tags a user can create.
300 'maxpeople' => 500, // maximum no. of people with the same tag by the same user
301 'allow_tagging' => array('all' => true), // equivalent to array('local' => true, 'remote' => true)
302 'desclimit' => null),
304 array('type' => 'like'),
306 array('handle' => false, // whether to handle sessions ourselves
307 'debug' => false, // debugging output for sessions
308 'gc_limit' => 1000), // max sessions to expire at a time
309 'htmlfilter' => [ // remove tags from user/remotely generated HTML if they are === true
314 'htmlpurifier' => [ // configurable options for HTMLPurifier
315 'Cache.DefinitionImpl' => 'Serializer',
316 'Cache.SerializerPath' => implode(DIRECTORY_SEPARATOR, [sys_get_temp_dir(), 'gnusocial']),
319 array('contentlimit' => null,
320 'allowprivate' => false, // whether to allow users to "check the padlock" to publish notices available for their subscribers.
321 'defaultscope' => null, // null means 1 if site/private, 0 otherwise
322 'hidespam' => true), // Whether to hide silenced users from timelines
324 array('contentlimit' => null),
326 array('share' => 'user', // whether to share location; 'always', 'user', 'never'
327 'sharedefault' => false),
329 array('disabled' => true),
331 array('core' => array(
332 'ActivityVerb' => array(),
333 'ActivityVerbPost' => array(),
334 'ActivityModeration' => array(),
335 'AuthCrypt' => array(),
336 'Cronish' => array(),
337 'Favorite' => array(),
338 'HTMLPurifierSchemes' => array(),
343 'Activity' => array(),
344 'AntiBrute' => array(),
345 'Bookmark' => array(),
346 'ClientSideShorten' => array(),
347 'DefaultLayout' => array(),
348 'Directory' => array(),
349 'DirectMessage' => array(),
350 'EmailAuthentication' => array(),
354 'OpportunisticQM' => array(),
355 'OStatus' => array(),
357 'SearchSub' => array(),
358 'SimpleCaptcha' => array(),
360 'WebFinger' => array(),
362 'locale_path' => false, // Set to a path to use *instead of* each plugin's own locale subdirectories
369 array('panels' => array('site', 'user', 'paths', 'access', 'sessions', 'sitenotice', 'license', 'plugins')),
371 array('enabled' => false,
374 array('crawldelay' => 0,
375 'disallow' => array('main', 'settings', 'admin', 'search', 'message')
378 array('realm' => null),
380 array('subscribers' => true,
383 'external' => 'sometimes'), // Options: 'sometimes', 'never', default = 'sometimes'
385 array('shortener' => 'internal',
386 'maxurllength' => 100,
387 'maxnoticelength' => -1),
388 'http' => // HTTP client settings when contacting other sites
389 array('ssl_cafile' => false, // To enable SSL cert validation, point to a CA bundle (eg '/usr/lib/ssl/certs/ca-certificates.crt') (this activates "ssl_verify_peer")
390 'ssl_verify_host' => true, // HTTPRequest2 makes sure this is set to CURLOPT_SSL_VERIFYHOST==2 if using curl
391 'curl' => false, // Use CURL backend for HTTP fetches if available. (If not, PHP's socket streams will be used.)
392 'connect_timeout' => 5,
393 'proxy_host' => null,
394 'proxy_port' => null,
395 'proxy_user' => null,
396 'proxy_password' => null,
397 'proxy_auth_scheme' => null,
400 array('cache' => true), // whether to cache the router object. Defaults to true, turn off for devel
402 array('cors' => false), // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
403 'performance' => array('high' => false) // disable some features for higher performance; default false