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