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