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