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