]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - config.php.sample
8ddac67417fd15abc83bf497ba848bbddc6e8b77
[quix0rs-gnu-social.git] / config.php.sample
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 // Allow Cross-Origin Resource Sharing
44 // $config['site']['cors'] = true;
45
46 // If your web server supports X-Sendfile (Apache with mod_xsendfile,
47 // lighttpd, nginx), you can enable X-Sendfile support for better
48 // performance. Presently, only attachment serving when the site is
49 // in private mode will use X-Sendfile.
50 // $config['site']['use_x_sendfile'] = false;
51 // You may also need to enable X-Sendfile support for your web server and
52 // allow it to access files outside of the web root. For Apache with
53 // mod_xsendfile, you can add these to your .htaccess or server config:
54 //
55 //       XSendFile on
56 //       XSendFileAllowAbove on
57 //
58 // See http://tn123.ath.cx/mod_xsendfile/ for mod_xsendfile.
59
60 // If you want logging sent to a file instead of syslog
61 // $config['site']['logfile'] = '/tmp/statusnet.log';
62
63 // Change the syslog facility that StatusNet logs to (default is LOG_USER)
64 // $config['syslog']['facility'] = LOG_LOCAL7;
65
66 // Enables extra log information, for example full details of PEAR DB errors
67 // $config['site']['logdebug'] = true;
68
69 // To set your own logo, overriding the one in the theme
70 // $config['site']['logo'] = '/mylogo.png';
71
72 // This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
73 // Set it to match your actual database
74
75 $config['db']['database'] = 'mysql://statusnet:microblog@localhost/statusnet';
76 // $config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/statusnet.ini';
77 // *** WARNING *** WARNING *** WARNING *** WARNING ***
78 // Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
79 // !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
80 // ours.
81 // *** WARNING *** WARNING *** WARNING *** WARNING ***
82 // $config['db']['debug'] = 0;
83 // $config['db']['db_driver'] = 'MDB2';
84
85 // Database type. For mysql, these defaults are fine. For postgresql, set
86 // 'quote_identifiers' to true and 'type' to 'pgsql':
87 // $config['db']['quote_identifiers'] = false;
88 // $config['db']['type'] = 'mysql';
89
90 // session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
91
92 // Standard fancy-url clashes prevented by not allowing nicknames on a blacklist
93 // Add your own here. Note: empty array by default
94 // $config['nickname']['blacklist'][] = 'scobleizer';
95
96 // sphinx search
97 $config['sphinx']['enabled'] = false;
98 $config['sphinx']['server'] = 'localhost';
99 $config['sphinx']['port'] = 3312;
100
101 // Users to populate the 'Featured' tab
102 // $config['nickname']['featured'][] = 'scobleizer';
103
104 // xmpp
105 // $config['xmpp']['enabled'] = false;
106 // $config['xmpp']['server'] = 'server.example.net';
107 // $config['xmpp']['host'] = NULL;      // Only set if different from server
108 // $config['xmpp']['port'] = 5222;
109 // $config['xmpp']['user'] = 'update';
110 // $config['xmpp']['encryption'] = false;
111 // $config['xmpp']['resource'] = 'uniquename';
112 // $config['xmpp']['password'] = 'blahblahblah';
113 // $config['xmpp']['public'][] = 'someindexer@example.net';
114 // $config['xmpp']['debug'] = false;
115
116 // Turn off invites
117 // $config['invite']['enabled'] = false;
118
119 // Default locale info
120 // $config['site']['timezone'] = 'Pacific/Auckland';
121 // $config['site']['language'] = 'en_NZ';
122
123 // When validating user supplied email addresses, validate if the domain
124 // is running an SMTP server.
125 // $config['mail']['check_domain'] = true;
126
127 // Email info, used for all outbound email
128 // $config['mail']['notifyfrom'] = 'microblog@example.net';
129 // Domain for generating no-reply and incoming email addresses, if enabled.
130 // Defaults to site server name.
131 // $config['mail']['domain'] = 'microblog.example.net';
132 // See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
133 // $config['mail']['backend'] = 'smtp';
134 // $config['mail']['params'] = array(
135 //                                                      'host' => 'localhost',
136 //                                                      'port' => 25,
137 //                                                      );
138
139 // exponential decay factor for tags, default 10 days
140 // raise this if traffic is slow, lower it if it's fast
141 // $config['tag']['dropoff'] = 86400.0 * 10;
142
143 // exponential decay factor for popular (most favorited notices)
144 // default 10 days -- similar to tag dropoff
145 // $config['popular']['dropoff'] = 86400.0 * 10;
146
147 // optionally show non-local messages in public timeline
148 // $config['public']['localonly'] = false;
149
150 // hide certain users from public pages, by ID
151 // $config['public']['blacklist'][] = 123;
152 // $config['public']['blacklist'][] = 2307;
153
154 // Mark certain notice sources as automatic and thus not
155 // appropriate for public feed
156 // $config['public]['autosource'][] = 'twitterfeed';
157 // $config['public]['autosource'][] = 'rssdent';
158 // $config['public]['autosource'][] = 'Ping.Fm';
159 // $config['public]['autosource'][] = 'HelloTxt';
160 // $config['public]['autosource'][] = 'Updating.Me';
161
162 // Do notice broadcasts offline
163 // If you use this, you must run the six offline daemons in the
164 // background. See the README for details.
165 // $config['queue']['enabled'] = true;
166
167 // Queue subsystem
168 // subsystems: internal (default) or stomp
169 // using stomp requires an external message queue server
170 // $config['queue']['subsystem'] = 'stomp';
171 // $config['queue']['stomp_server'] = 'tcp://localhost:61613';
172 // use different queue_basename for each statusnet instance managed by the server
173 // $config['queue']['queue_basename'] = '/queue/statusnet/';
174
175 // The following customise the behaviour of the various daemons:
176 // $config['daemon']['piddir'] = '/var/run';
177 // $config['daemon']['user'] = false;
178 // $config['daemon']['group'] = false;
179
180 // For installations with high traffic, statusnet can use MemCached to cache
181 // frequently requested information. Only enable the following if you have
182 // MemCached up and running:
183 // $config['memcached']['enabled'] = false;
184 // $config['memcached']['server'] = 'localhost';
185 // $config['memcached']['port'] = 11211;
186
187 // People tags
188 // Maximum number of tags a user can create:
189 // $config['peopletag']['maxtags'] = 100;
190 // Maximum number of people can have the same tag by the same user
191 // $config['peopletag']['maxpeople'] = 500;
192 // Types of users one can tag.
193 // Everyone.
194 // $config['peopletag']['allow_tagging']['all'] = true;
195 // Local only.
196 // $config['peopletag']['allow_tagging']['local'] = true;
197 // Subscriptions / Subscribers only (including remote)
198 // $config['peopletag']['allow_tagging']['subs'] = true;
199 // Remote.
200 // $config['peopletag']['allow_tagging']['remote'] = true;
201 // Examples:
202 // The following set of options allows tagging local users and
203 // remote subscribers / subscription.
204 // $config['peopletag']['allow_tagging']['all'] = false;
205 // $config['peopletag']['allow_tagging']['local'] = true;
206 // $config['peopletag']['allow_tagging']['subs'] = true;
207 // Or:
208 // $config['peopletag']['allow_tagging'] = array('local' => true, 'subs' =>true);
209
210 // Disable post-by-email
211 // $config['emailpost']['enabled'] = false;
212
213 // Disable SMS
214 // $config['sms']['enabled'] = false;
215
216 // Twitter integration source attribute. Note: default is StatusNet
217 // $config['integration']['source'] = 'StatusNet';
218
219 // Enable bidirectional Twitter bridge
220 //
221 // NOTE: if you enable this you must also set $config['avatar']['path']
222 //
223 // $config['twitterimport']['enabled'] = true;
224
225 // Twitter OAuth settings. Documentation is at http://apiwiki.twitter.com/OAuth-FAQ
226 // $config['twitter']['consumer_key']    = 'YOURKEY';
227 // $config['twitter']['consumer_secret'] = 'YOURSECRET';
228
229 // Edit throttling. Off by default. If turned on, you can only post 20 notices
230 // every 10 minutes. Admins may want to play with the settings to minimize inconvenience for
231 // real users without getting uncontrollable floods from spammers or runaway bots.
232
233 // $config['throttle']['enabled'] = true;
234 // $config['throttle']['count'] = 100;
235 // $config['throttle']['timespan'] = 3600;
236
237 // Config section for the built-in Facebook application
238 // $config['facebook']['apikey'] = 'APIKEY';
239 // $config['facebook']['secret'] = 'SECRET';
240
241 // Add Google Analytics
242 // require_once('plugins/GoogleAnalyticsPlugin.php');
243 // $ga = new GoogleAnalyticsPlugin('your secret code');
244
245 // Use Templating (template: /tpl/index.php)
246 // require_once('plugins/TemplatePlugin.php');
247 // $tpl = new TemplatePlugin();
248
249 // Don't allow saying the same thing more than once per hour
250 // $config['site']['dupelimit'] = 3600;
251 // Don't enforce the dupe limit
252 // $config['site']['dupelimit'] = -1;
253
254 // Base string for minting Tag URIs in Atom feeds. Defaults to
255 // "yourserver,2009". This needs to be configured properly for your Atom
256 // feeds to validate.  See: http://www.faqs.org/rfcs/rfc4151.html and
257 // http://taguri.org/ Examples:
258 // $config['integration']['taguri'] = 'example.net,2008';
259 // $config['integration']['taguri'] = 'admin@example.net,2009-03-09'
260
261 // Don't use SSL
262 // $config['site']['ssl'] = 'never';
263 // Use SSL only for sensitive pages (like login, password change)
264 // $config['site']['ssl'] = 'sometimes';
265 // Use SSL for all pages
266 // $config['site']['ssl'] = 'always';
267
268 // Use a different hostname for SSL-encrypted pages
269 // $config['site']['sslserver'] = 'secure.example.org';
270
271 // Indent HTML and XML
272 // Enable (default) for easier to read markup for developers,
273 // disable to save some bandwidth.
274 // $config['site']['indent'] = true;
275
276 // If you have a lot of status networks on the same server, you can
277 // store the site data in a database and switch as follows
278 // Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet');
279 // if (!Status_network::setupSite($_server, $_path)) {
280 //        print "Error\n";
281 //        exit(1);
282 // }
283
284 // How often to send snapshots; in # of web hits. Ideally,
285 // try to do this once per month (that is, make this equal to number
286 // of hits per month)
287 // $config['snapshot']['frequency'] = 10000;
288 // If you don't want to report statistics to the central server, uncomment.
289 // $config['snapshot']['run'] = 'never';
290 // If you want to report statistics in a cron job instead.
291 // $config['snapshot']['run'] = 'cron';
292
293 // Support for file uploads (attachments),
294 // select supported mimetypes and quotas (in bytes)
295 // $config['attachments']['supported'] = array('image/png', 'application/ogg');
296 // $config['attachments']['supported'] = true; //allow all file types to be uploaded
297
298 // $config['attachments']['file_quota'] = 5000000;
299 // $config['attachments']['user_quota'] = 50000000;
300 // $config['attachments']['monthly_quota'] = 15000000;
301 // $config['attachments']['uploads'] = true;
302 // $config['attachments']['path'] = "/file/"; //ignored if site is private
303 // $config['attachments']['dir'] = INSTALLDIR . '/file/';
304
305 // $config['oohembed']['endpoint'] = 'http://oohembed.com/oohembed/';