]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - lib/default.php
Merge remote branch 'gitorious/0.9.x' into 0.9.x
[quix0rs-gnu-social.git] / lib / default.php
1 <?php
2 /**
3  * StatusNet, the distributed open-source microblogging tool
4  *
5  * Default settings for core configuration
6  *
7  * PHP version 5
8  *
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.
13  *
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.
18  *
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/>.
21  *
22  * @category  Config
23  * @package   StatusNet
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://status.net/
28  */
29
30 $default =
31   array('site' =>
32         array('name' => 'Just another StatusNet microblog',
33               'nickname' => 'statusnet',
34               'wildcard' => null,
35               'server' => $_server,
36               'theme' => 'default',
37               'path' => $_path,
38               'logfile' => null,
39               'logo' => null,
40               'ssllogo' => null,
41               'logdebug' => false,
42               'fancy' => false,
43               'locale_path' => INSTALLDIR.'/locale',
44               'language' => 'en',
45               'langdetect' => true,
46               'languages' => get_all_languages(),
47               'email' =>
48               array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : null,
49               'broughtby' => null,
50               'timezone' => 'UTC',
51               'broughtbyurl' => null,
52               'closed' => false,
53               'inviteonly' => false,
54               'private' => false,
55               'ssl' => 'never',
56               'sslserver' => null,
57               'shorturllength' => 30,
58               'dupelimit' => 60, // default for same person saying the same thing
59               'textlimit' => 140,
60               'indent' => true,
61               'use_x_sendfile' => false,
62               'notice' => null, // site wide notice text
63               'build' => 1, // build number, for code-dependent cache
64               ),
65         'db' =>
66         array('database' => 'YOU HAVE TO SET THIS IN config.php',
67               'schema_location' => INSTALLDIR . '/classes',
68               'class_location' => INSTALLDIR . '/classes',
69               'require_prefix' => 'classes/',
70               'class_prefix' => '',
71               'mirror' => null,
72               'utf8' => true,
73               'db_driver' => 'DB', # XXX: JanRain libs only work with DB
74               'quote_identifiers' => false,
75               'type' => 'mysql',
76               'schemacheck' => 'runtime', // 'runtime' or 'script'
77               'annotate_queries' => false, // true to add caller comments to queries, eg /* POST Notice::saveNew */
78               'log_queries' => false, // true to log all DB queries
79               'log_slow_queries' => 0), // if set, log queries taking over N seconds
80         'syslog' =>
81         array('appname' => 'statusnet', # for syslog
82               'priority' => 'debug', # XXX: currently ignored
83               'facility' => LOG_USER),
84         'queue' =>
85         array('enabled' => false,
86               'subsystem' => 'db', # default to database, or 'stomp'
87               'stomp_server' => null,
88               'queue_basename' => '/queue/statusnet/',
89               'control_channel' => '/topic/statusnet/control', // broadcasts to all queue daemons
90               'stomp_username' => null,
91               'stomp_password' => null,
92               'stomp_persistent' => true, // keep items across queue server restart, if persistence is enabled
93               'stomp_transactions' => true, // use STOMP transactions to aid in detecting failures (supported by ActiveMQ, but not by all)
94               'stomp_acks' => true, // send acknowledgements after successful processing (supported by ActiveMQ, but not by all)
95               'stomp_manual_failover' => true, // if multiple servers are listed, treat them as separate (enqueue on one randomly, listen on all)
96               'monitor' => null, // URL to monitor ping endpoint (work in progress)
97               'softlimit' => '90%', // total size or % of memory_limit at which to restart queue threads gracefully
98               'spawndelay' => 1, // Wait at least N seconds between (re)spawns of child processes to avoid slamming the queue server with subscription startup
99               'debug_memory' => false, // true to spit memory usage to log
100               'inboxes' => true, // true to do inbox distribution & output queueing from in background via 'distrib' queue
101               'breakout' => array(), // List queue specifiers to break out when using Stomp queue.
102                                      // Default will share all queues for all sites within each group.
103                                      // Specify as <group>/<queue> or <group>/<queue>/<site>,
104                                      // using nickname identifier as site.
105                                      //
106                                      // 'main/distrib' separate "distrib" queue covering all sites
107                                      // 'xmpp/xmppout/mysite' separate "xmppout" queue covering just 'mysite'
108               'max_retries' => 10, // drop messages after N failed attempts to process (Stomp)
109               'dead_letter_dir' => false, // set to directory to save dropped messages into (Stomp)
110               ),
111         'license' =>
112         array('type' => 'cc', # can be 'cc', 'allrightsreserved', 'private'
113               'owner' => null, # can be name of content owner e.g. for enterprise
114               'url' => 'http://creativecommons.org/licenses/by/3.0/',
115               'title' => 'Creative Commons Attribution 3.0',
116               'image' => 'http://i.creativecommons.org/l/by/3.0/80x15.png'),
117         'mail' =>
118         array('backend' => 'mail',
119               'params' => null,
120               'domain_check' => true),
121         'nickname' =>
122         array('blacklist' => array(),
123               'featured' => array()),
124         'profile' =>
125         array('banned' => array(),
126               'biolimit' => null,
127               'backup' => true,
128               'restore' => true,
129               'delete' => false,
130               'move' => true),
131         'avatar' =>
132         array('server' => null,
133               'dir' => INSTALLDIR . '/avatar/',
134               'path' => $_path . '/avatar/',
135               'ssl' => null),
136         'background' =>
137         array('server' => null,
138               'dir' => INSTALLDIR . '/background/',
139               'path' => $_path . '/background/',
140               'ssl' => null),
141         'public' =>
142         array('localonly' => true,
143               'blacklist' => array(),
144               'autosource' => array()),
145         'theme' =>
146         array('server' => null,
147               'dir' => null,
148               'path'=> null,
149               'ssl' => null),
150         'theme_upload' =>
151         array('enabled' => extension_loaded('zip')),
152         'javascript' =>
153         array('server' => null,
154               'path'=> null,
155               'ssl' => null),
156         'local' => // To override path/server for themes in 'local' dir (not currently applied to local plugins)
157         array('server' => null,
158               'dir' => null,
159               'path' => null,
160               'ssl' => null),
161         'throttle' =>
162         array('enabled' => false, // whether to throttle edits; false by default
163               'count' => 20, // number of allowed messages in timespan
164               'timespan' => 600), // timespan for throttling
165         'xmpp' =>
166         array('enabled' => false,
167               'server' => 'INVALID SERVER',
168               'port' => 5222,
169               'user' => 'update',
170               'encryption' => true,
171               'resource' => 'uniquename',
172               'password' => 'blahblahblah',
173               'host' => null, # only set if != server
174               'debug' => false, # print extra debug info
175               'public' => array()), # JIDs of users who want to receive the public stream
176         'invite' =>
177         array('enabled' => true),
178         'tag' =>
179         array('dropoff' => 864000.0,   # controls weighting based on age
180               'cutoff' => 86400 * 90), # only look at notices posted in last 90 days
181         'popular' =>
182         array('dropoff' => 864000.0,   # controls weighting based on age
183               'cutoff' => 86400 * 90), # only look at notices favorited in last 90 days
184         'daemon' =>
185         array('piddir' => '/var/run',
186               'user' => false,
187               'group' => false),
188         'emailpost' =>
189         array('enabled' => true),
190         'sms' =>
191         array('enabled' => true),
192         'twitterimport' =>
193         array('enabled' => false),
194         'integration' =>
195         array('source' => 'StatusNet', # source attribute for Twitter
196               'taguri' => null), # base for tag URIs
197         'twitter' =>
198         array('signin' => true,
199               'consumer_key' => null,
200               'consumer_secret' => null),
201         'cache' =>
202         array('base' => null),
203         'ping' =>
204         array('notify' => array(),
205               'timeout' => 2),
206         'inboxes' =>
207         array('enabled' => true), # ignored after 0.9.x
208         'newuser' =>
209         array('default' => null,
210               'welcome' => null),
211         'snapshot' =>
212         array('run' => 'web',
213               'frequency' => 10000,
214               'reporturl' => 'http://status.net/stats/report'),
215         'attachments' =>
216         array('server' => null,
217               'dir' => INSTALLDIR . '/file/',
218               'path' => $_path . '/file/',
219               'sslserver' => null,
220               'sslpath' => null,
221               'ssl' => null,
222               'supported' => array('image/png',
223                                    'image/jpeg',
224                                    'image/gif',
225                                    'image/svg+xml',
226                                    'audio/mpeg',
227                                    'audio/x-speex',
228                                    'application/ogg',
229                                    'application/pdf',
230                                    'application/vnd.oasis.opendocument.text',
231                                    'application/vnd.oasis.opendocument.text-template',
232                                    'application/vnd.oasis.opendocument.graphics',
233                                    'application/vnd.oasis.opendocument.graphics-template',
234                                    'application/vnd.oasis.opendocument.presentation',
235                                    'application/vnd.oasis.opendocument.presentation-template',
236                                    'application/vnd.oasis.opendocument.spreadsheet',
237                                    'application/vnd.oasis.opendocument.spreadsheet-template',
238                                    'application/vnd.oasis.opendocument.chart',
239                                    'application/vnd.oasis.opendocument.chart-template',
240                                    'application/vnd.oasis.opendocument.image',
241                                    'application/vnd.oasis.opendocument.image-template',
242                                    'application/vnd.oasis.opendocument.formula',
243                                    'application/vnd.oasis.opendocument.formula-template',
244                                    'application/vnd.oasis.opendocument.text-master',
245                                    'application/vnd.oasis.opendocument.text-web',
246                                    'application/x-zip',
247                                    'application/zip',
248                                    'text/plain',
249                                    'video/mpeg',
250                                    'video/mp4',
251                                    'video/quicktime',
252                                    'video/mpeg'),
253               'file_quota' => 5000000,
254               'user_quota' => 50000000,
255               'monthly_quota' => 15000000,
256               'uploads' => true,
257               'filecommand' => '/usr/bin/file',
258               'show_thumbs' => true, // show thumbnails in notice lists for uploaded images, and photos and videos linked remotely that provide oEmbed info
259               'thumb_width' => 100,
260               'thumb_height' => 75,
261               'process_links' => true, // check linked resources for embeddable photos and videos; this will hit referenced external web sites when processing new messages.
262               ),
263         'application' =>
264         array('desclimit' => null),
265         'group' =>
266         array('maxaliases' => 3,
267               'desclimit' => null),
268         'oohembed' => array('endpoint' => 'http://oohembed.com/oohembed/'),
269         'search' =>
270         array('type' => 'fulltext'),
271         'sessions' =>
272         array('handle' => false, // whether to handle sessions ourselves
273               'debug' => false), // debugging output for sessions
274         'design' =>
275         array('backgroundcolor' => null, // null -> 'use theme default'
276               'contentcolor' => null,
277               'sidebarcolor' => null,
278               'textcolor' => null,
279               'linkcolor' => null,
280               'backgroundimage' => null,
281               'disposition' => null),
282         'custom_css' =>
283         array('enabled' => true,
284               'css' => ''),
285         'notice' =>
286         array('contentlimit' => null),
287         'message' =>
288         array('contentlimit' => null),
289         'location' =>
290         array('share' => 'user', // whether to share location; 'always', 'user', 'never'
291               'sharedefault' => true),
292         'omb' =>
293         array('timeout' => 5), // HTTP request timeout in seconds when contacting remote hosts for OMB updates
294         'logincommand' =>
295         array('disabled' => true),
296         'plugins' =>
297         array('default' => array('LilUrl' => array('shortenerName'=>'ur1.ca',
298                                                    'freeService' => true,
299                                                    'serviceUrl'=>'http://ur1.ca/'),
300                                  'PtitUrl' => array('shortenerName' => 'ptiturl.com',
301                                                     'serviceUrl' => 'http://ptiturl.com/?creer=oui&action=Reduire&url=%1$s'),
302                                  'SimpleUrl' => array(array('shortenerName' => 'is.gd', 'serviceUrl' => 'http://is.gd/api.php?longurl=%1$s'),
303                                                       array('shortenerName' => 'snipr.com', 'serviceUrl' => 'http://snipr.com/site/snip?r=simple&link=%1$s'),
304                                                       array('shortenerName' => 'metamark.net', 'serviceUrl' => 'http://metamark.net/api/rest/simple?long_url=%1$s'),
305                                                       array('shortenerName' => 'tinyurl.com', 'serviceUrl' => 'http://tinyurl.com/api-create.php?url=%1$s')),
306                                  'TightUrl' => array('shortenerName' => '2tu.us', 'freeService' => true,'serviceUrl'=>'http://2tu.us/?save=y&url=%1$s'),
307                                  'Geonames' => null,
308                                  'Mapstraction' => null,
309                                  'OStatus' => null,
310                                  'WikiHashtags' => null,
311                                  'RSSCloud' => null,
312                                  'OpenID' => null),
313               'locale_path' => false, // Set to a path to use *instead of* each plugin's own locale subdirectories
314               ),
315         'admin' =>
316         array('panels' => array('design', 'site', 'user', 'paths', 'access', 'sessions', 'sitenotice', 'license')),
317         'singleuser' =>
318         array('enabled' => false,
319               'nickname' => null),
320         'robotstxt' =>
321         array('crawldelay' => 0,
322               'disallow' => array('main', 'settings', 'admin', 'search', 'message')
323               ),
324         'api' =>
325         array('realm' => null),
326         'nofollow' =>
327         array('subscribers' => true,
328               'members' => true,
329               'peopletag' => true,
330               'external' => 'sometimes'), // Options: 'sometimes', 'never', default = 'sometimes'
331         'http' => // HTTP client settings when contacting other sites
332         array('ssl_cafile' => false, // To enable SSL cert validation, point to a CA bundle (eg '/usr/lib/ssl/certs/ca-certificates.crt')
333               'curl' => false, // Use CURL backend for HTTP fetches if available. (If not, PHP's socket streams will be used.)
334               'proxy_host' => null,
335               'proxy_port' => null,
336               'proxy_user' => null,
337               'proxy_password' => null,
338               'proxy_auth_scheme' => null,
339               ),
340         'router' =>
341         array('cache' => true), // whether to cache the router object. Defaults to true, turn off for devel
342         );