1
<?php
2
/* -*- mode: php -*- */
3
4
if (!defined('STATUSNET')) { exit(1); }
5
6
// If you have downloaded libraries in random little places, you
7
// can add the paths here
8
9
// $extra_path = array("/opt/php-openid-2.0.1", "/usr/local/share/php");
10
// set_include_path(implode(PATH_SEPARATOR, $extra_path) . PATH_SEPARATOR . get_include_path());
11
12
// We get called by common.php, $config is a tree with lots of config
13
// options
14
// These are for configuring your URLs
15
16
$config['site']['name'] = 'Just another StatusNet microblog';
17
$config['site']['server'] = 'localhost';
18
$config['site']['path'] = 'statusnet';
19
// $config['site']['fancy'] = false;
20
// $config['site']['theme'] = 'default';
21
// Sets the site's default design values
22
// $config['design']['backgroundcolor'] = '#F0F2F5';
23
// $config['design']['contentcolor'] = '#FFFFFF';
24
// $config['design']['sidebarcolor'] = '#CEE1E9';
25
// $config['design']['textcolor'] = '#000000';
26
// $config['design']['linkcolor'] = '#002E6E';
27
// $config['design']['backgroundimage'] = null;
28
// $config['design']['disposition'] = 1;
29
// To enable the built-in mobile style sheet, defaults to false.
30
// $config['site']['mobile'] = true;
31
// For contact email, defaults to $_SERVER["SERVER_ADMIN"]
32
// $config['site']['email'] = 'admin@example.net';
33
// Brought by...
34
// $config['site']['broughtby'] = 'Individual or Company';
35
// $config['site']['broughtbyurl'] = 'http://example.net/';
36
// If you don't want to let users register (say, for a one-person install)
37
// Crude but effective -- register everybody, then lock down
38
// $config['site']['closed'] = true;
39
// Only allow registration for people invited by another user
40
// $config['site']['inviteonly'] = true;
41
// Make the site invisible to  non-logged-in users
42
// $config['site']['private'] = true;
43
44
// If you want logging sent to a file instead of syslog
45
// $config['site']['logfile'] = '/tmp/statusnet.log';
46
47
// Change the syslog facility that StatusNet logs to (default is LOG_USER)
48
// $config['syslog']['facility'] = LOG_LOCAL7;
49
50
// Enables extra log information, for example full details of PEAR DB errors
51
// $config['site']['logdebug'] = true;
52
53
// To set your own logo, overriding the one in the theme
54
// $config['site']['logo'] = '/mylogo.png';
55
56
// This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
57
// Set it to match your actual database
58
59
$config['db']['database'] = 'mysql://statusnet:microblog@localhost/statusnet';
60
// $config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/statusnet.ini';
61
// *** WARNING *** WARNING *** WARNING *** WARNING ***
62
// Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
63
// !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
64
// ours.
65
// *** WARNING *** WARNING *** WARNING *** WARNING ***
66
// $config['db']['debug'] = 0;
67
// $config['db']['db_driver'] = 'MDB2';
68
69
// Database type. For mysql, these defaults are fine. For postgresql, set
70
// 'quote_identifiers' to true and 'type' to 'pgsql':
71
// $config['db']['quote_identifiers'] = false;
72
// $config['db']['type'] = 'mysql';
73
74
// session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
75
76
// Standard fancy-url clashes prevented by not allowing nicknames on a blacklist
77
// Add your own here. Note: empty array by default
78
// $config['nickname']['blacklist'][] = 'scobleizer';
79
80
// sphinx search
81
$config['sphinx']['enabled'] = false;
82
$config['sphinx']['server'] = 'localhost';
83
$config['sphinx']['port'] = 3312;
84
85
// Users to populate the 'Featured' tab
86
// $config['nickname']['featured'][] = 'scobleizer';
87
88
// xmpp
89
// $config['xmpp']['enabled'] = false;
90
// $config['xmpp']['server'] = 'server.example.net';
91
// $config['xmpp']['host'] = NULL;	// Only set if different from server
92
// $config['xmpp']['port'] = 5222;
93
// $config['xmpp']['user'] = 'update';
94
// $config['xmpp']['encryption'] = false;
95
// $config['xmpp']['resource'] = 'uniquename';
96
// $config['xmpp']['password'] = 'blahblahblah';
97
// $config['xmpp']['public'][] = 'someindexer@example.net';
98
// $config['xmpp']['debug'] = false;
99
100
// Turn off invites
101
// $config['invite']['enabled'] = false;
102
103
// Default locale info
104
// $config['site']['timezone'] = 'Pacific/Auckland';
105
// $config['site']['language'] = 'en_NZ';
106
107
// When validating user supplied email addresses, validate if the domain
108
// is running an SMTP server.
109
// $config['mail']['check_domain'] = true;
110
111
// Email info, used for all outbound email
112
// $config['mail']['notifyfrom'] = 'microblog@example.net';
113
// $config['mail']['domain'] = 'microblog.example.net';
114
// See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
115
// $config['mail']['backend'] = 'smtp';
116
// $config['mail']['params'] = array(
117
// 							'host' => 'localhost',
118
// 							'port' => 25,
119
// 							);
120
// For incoming email, if enabled. Defaults to site server name.
121
// $config['mail']['domain'] = 'incoming.example.net';
122
123
// exponential decay factor for tags, default 10 days
124
// raise this if traffic is slow, lower it if it's fast
125
// $config['tag']['dropoff'] = 86400.0 * 10;
126
127
// exponential decay factor for popular (most favorited notices)
128
// default 10 days -- similar to tag dropoff
129
// $config['popular']['dropoff'] = 86400.0 * 10;
130
131
// optionally show non-local messages in public timeline
132
// $config['public']['localonly'] = false;
133
134
// hide certain users from public pages, by ID
135
// $config['public']['blacklist'][] = 123;
136
// $config['public']['blacklist'][] = 2307;
137
138
// Mark certain notice sources as automatic and thus not
139
// appropriate for public feed
140
// $config['public]['autosource'][] = 'twitterfeed';
141
// $config['public]['autosource'][] = 'rssdent';
142
// $config['public]['autosource'][] = 'Ping.Fm';
143
// $config['public]['autosource'][] = 'HelloTxt';
144
// $config['public]['autosource'][] = 'Updating.Me';
145
146
// Do notice broadcasts offline
147
// If you use this, you must run the six offline daemons in the
148
// background. See the README for details.
149
// $config['queue']['enabled'] = true;
150
151
// Queue subsystem
152
// subsystems: internal (default) or stomp
153
// using stomp requires an external message queue server
154
// $config['queue']['subsystem'] = 'stomp';
155
// $config['queue']['stomp_server'] = 'tcp://localhost:61613';
156
// use different queue_basename for each statusnet instance managed by the server
157
// $config['queue']['queue_basename'] = 'statusnet';
158
159
// The following customise the behaviour of the various daemons:
160
// $config['daemon']['piddir'] = '/var/run';
161
// $config['daemon']['user'] = false;
162
// $config['daemon']['group'] = false;
163
164
// For installations with high traffic, statusnet can use MemCached to cache
165
// frequently requested information. Only enable the following if you have
166
// MemCached up and running:
167
// $config['memcached']['enabled'] = false;
168
// $config['memcached']['server'] = 'localhost';
169
// $config['memcached']['port'] = 11211;
170
171
// Disable post-by-email
172
// $config['emailpost']['enabled'] = false;
173
174
// Disable SMS
175
// $config['sms']['enabled'] = false;
176
177
// Disable Twitter integration
178
// $config['twitter']['enabled'] = false;
179
180
// Twitter integration source attribute. Note: default is StatusNet
181
// $config['integration']['source'] = 'StatusNet';
182
183
// Enable bidirectional Twitter bridge
184
//
185
// NOTE: if you enable this you must also set $config['avatar']['path']
186
//
187
// $config['twitterbridge']['enabled'] = true;
188
189
// Twitter OAuth settings
190
// $config['twitter']['consumer_key']    = 'YOURKEY';
191
// $config['twitter']['consumer_secret'] = 'YOURSECRET';
192
193
// Edit throttling. Off by default. If turned on, you can only post 20 notices
194
// every 10 minutes. Admins may want to play with the settings to minimize inconvenience for
195
// real users without getting uncontrollable floods from spammers or runaway bots.
196
197
// $config['throttle']['enabled'] = true;
198
// $config['throttle']['count'] = 100;
199
// $config['throttle']['timespan'] = 3600;
200
201
// List of users banned from posting (nicknames and/or IDs)
202
// $config['profile']['banned'][] = 'hacker';
203
// $config['profile']['banned'][] = 12345;
204
205
// Config section for the built-in Facebook application
206
// $config['facebook']['apikey'] = 'APIKEY';
207
// $config['facebook']['secret'] = 'SECRET';
208
209
// Add Google Analytics
210
// require_once('plugins/GoogleAnalyticsPlugin.php');
211
// $ga = new GoogleAnalyticsPlugin('your secret code');
212
213
// Use Templating (template: /tpl/index.php)
214
// require_once('plugins/TemplatePlugin.php');
215
// $tpl = new TemplatePlugin();
216
217
// Don't allow saying the same thing more than once per hour
218
// $config['site']['dupelimit'] = 3600;
219
// Don't enforce the dupe limit
220
// $config['site']['dupelimit'] = -1;
221
222
// Base string for minting Tag URIs in Atom feeds. Defaults to
223
// "yourserver,2009". This needs to be configured properly for your Atom
224
// feeds to validate.  See: http://www.faqs.org/rfcs/rfc4151.html and
225
// http://taguri.org/ Examples:
226
// $config['integration']['taguri'] = 'example.net,2008';
227
// $config['integration']['taguri'] = 'admin@example.net,2009-03-09'
228
229
// Don't use SSL
230
// $config['site']['ssl'] = 'never';
231
// Use SSL only for sensitive pages (like login, password change)
232
// $config['site']['ssl'] = 'sometimes';
233
// Use SSL for all pages
234
// $config['site']['ssl'] = 'always';
235
236
// Use a different hostname for SSL-encrypted pages
237
// $config['site']['sslserver'] = 'secure.example.org';
238
239
// Indent HTML and XML
240
// Enable (default) for easier to read markup for developers,
241
// disable to save some bandwidth.
242
// $config['site']['indent'] = true;
243
244
// If you have a lot of status networks on the same server, you can
245
// store the site data in a database and switch as follows
246
// Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet');
247
// if (!Status_network::setupSite($_server, $_path)) {
248
//        print "Error\n";
249
//        exit(1);
250
// }
251
252
// How often to send snapshots; in # of web hits. Ideally,
253
// try to do this once per month (that is, make this equal to number
254
// of hits per month)
255
// $config['snapshot']['frequency'] = 10000;
256
// If you don't want to report statistics to the central server, uncomment.
257
// $config['snapshot']['run'] = 'never';
258
// If you want to report statistics in a cron job instead.
259
// $config['snapshot']['run'] = 'cron';
260
261
// Support for file uploads (attachments),
262
// select supported mimetypes and quotas (in bytes)
263
// $config['attachments']['supported'] = array('image/png', 'application/ogg');
264
// $config['attachments']['file_quota'] = 5000000;
265
// $config['attachments']['user_quota'] = 50000000;
266
// $config['attachments']['monthly_quota'] = 15000000;
267
// $config['attachments']['uploads'] = true;
268
// $config['attachments']['path'] = "/file/";
269
270
// $config['oohembed']['endpoint'] = 'http://oohembed.com/oohembed/';