]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - config.php.sample
Merge commit 'dcostalis/econversation' into 0.8.x
[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'] = 'laconica';
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/laconica.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://laconica:microblog@localhost/laconica';
62 // $config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/laconica.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 // Turn off invites
103 // $config['invite']['enabled'] = false;
104
105 // Default locale info
106 // $config['site']['timezone'] = 'Pacific/Auckland';
107 // $config['site']['language'] = 'en_NZ';
108
109 // Email info, used for all outbound email
110 // $config['mail']['notifyfrom'] = 'microblog@example.net';
111 // $config['mail']['domain'] = 'microblog.example.net';
112 // See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
113 // $config['mail']['backend'] = 'smtp';
114 // $config['mail']['params'] = array(
115 //                                                      'host' => 'localhost',
116 //                                                      'port' => 25,
117 //                                                      );
118 // For incoming email, if enabled. Defaults to site server name.
119 // $config['mail']['domain'] = 'incoming.example.net';
120
121 // exponential decay factor for tags, default 10 days
122 // raise this if traffic is slow, lower it if it's fast
123 // $config['tag']['dropoff'] = 86400.0 * 10;
124
125 // exponential decay factor for popular (most favorited notices)
126 // default 10 days -- similar to tag dropoff
127 // $config['popular']['dropoff'] = 86400.0 * 10;
128
129 // optionally show non-local messages in public timeline
130 // $config['public']['localonly'] = false;
131
132 // hide certain users from public pages, by ID
133 // $config['public']['blacklist'][] = 123;
134 // $config['public']['blacklist'][] = 2307;
135
136 // Mark certain notice sources as automatic and thus not
137 // appropriate for public feed
138 // $config['public]['autosource'][] = 'twitterfeed';
139 // $config['public]['autosource'][] = 'rssdent';
140 // $config['public]['autosource'][] = 'Ping.Fm';
141 // $config['public]['autosource'][] = 'HelloTxt';
142 // $config['public]['autosource'][] = 'Updating.Me';
143
144 // Do notice broadcasts offline
145 // If you use this, you must run the six offline daemons in the
146 // background. See the README for details.
147 // $config['queue']['enabled'] = true;
148
149 // Queue subsystem
150 // subsystems: internal (default) or stomp
151 // using stomp requires an external message queue server
152 // $config['queue']['subsystem'] = 'stomp';
153 // $config['queue']['stomp_server'] = 'tcp://localhost:61613';
154 // use different queue_basename for each laconica instance managed by the server
155 // $config['queue']['queue_basename'] = 'laconica';
156
157 // The following customise the behaviour of the various daemons:
158 // $config['daemon']['piddir'] = '/var/run';
159 // $config['daemon']['user'] = false;
160 // $config['daemon']['group'] = false;
161
162 // For installations with high traffic, laconica can use MemCached to cache
163 // frequently requested information. Only enable the following if you have
164 // MemCached up and running:
165 // $config['memcached']['enabled'] = false;
166 // $config['memcached']['server'] = 'localhost';
167 // $config['memcached']['port'] = 11211;
168
169 // Disable post-by-email
170 // $config['emailpost']['enabled'] = false;
171
172 // Disable SMS
173 // $config['sms']['enabled'] = false;
174
175 // Disable Twitter integration
176 // $config['twitter']['enabled'] = false;
177
178 // Twitter integration source attribute. Note: default is Laconica
179 // $config['integration']['source'] = 'Laconica';
180
181 // Enable bidirectional Twitter bridge
182 //
183 // NOTE: if you enable this you must also set $config['avatar']['path']
184 //
185 // $config['twitterbridge']['enabled'] = true;
186
187 // Twitter OAuth settings
188 // $config['twitter']['consumer_key']    = 'YOURKEY';
189 // $config['twitter']['consumer_secret'] = 'YOURSECRET';
190
191 // Edit throttling. Off by default. If turned on, you can only post 20 notices
192 // every 10 minutes. Admins may want to play with the settings to minimize inconvenience for
193 // real users without getting uncontrollable floods from spammers or runaway bots.
194
195 // $config['throttle']['enabled'] = true;
196 // $config['throttle']['count'] = 100;
197 // $config['throttle']['timespan'] = 3600;
198
199 // List of users banned from posting (nicknames and/or IDs)
200 // $config['profile']['banned'][] = 'hacker';
201 // $config['profile']['banned'][] = 12345;
202
203 // Config section for the built-in Facebook application
204 // $config['facebook']['apikey'] = 'APIKEY';
205 // $config['facebook']['secret'] = 'SECRET';
206
207 // Add Google Analytics
208 // require_once('plugins/GoogleAnalyticsPlugin.php');
209 // $ga = new GoogleAnalyticsPlugin('your secret code');
210
211 // Use Templating (template: /tpl/index.php)
212 // require_once('plugins/TemplatePlugin.php');
213 // $tpl = new TemplatePlugin();
214
215 // Don't allow saying the same thing more than once per hour
216 // $config['site']['dupelimit'] = 3600;
217 // Don't enforce the dupe limit
218 // $config['site']['dupelimit'] = -1;
219
220 // Base string for minting Tag URIs in Atom feeds. Defaults to
221 // "yourserver,2009". This needs to be configured properly for your Atom
222 // feeds to validate.  See: http://www.faqs.org/rfcs/rfc4151.html and
223 // http://taguri.org/ Examples:
224 // $config['integration']['taguri'] = 'example.net,2008';
225 // $config['integration']['taguri'] = 'admin@example.net,2009-03-09'
226
227 // Don't use SSL
228 // $config['site']['ssl'] = 'never';
229 // Use SSL only for sensitive pages (like login, password change)
230 // $config['site']['ssl'] = 'sometimes';
231 // Use SSL for all pages
232 // $config['site']['ssl'] = 'always';
233
234 // Use a different hostname for SSL-encrypted pages
235 // $config['site']['sslserver'] = 'secure.example.org';
236
237 // If you have a lot of status networks on the same server, you can
238 // store the site data in a database and switch as follows
239 // Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet');
240 // if (!Status_network::setupSite($_server, $_path)) {
241 //        print "Error\n";
242 //        exit(1);
243 // }
244
245 // How often to send snapshots; in # of web hits. Ideally,
246 // try to do this once per month (that is, make this equal to number
247 // of hits per month)
248 // $config['snapshot']['frequency'] = 10000;
249 // If you don't want to report statistics to the central server, uncomment.
250 // $config['snapshot']['run'] = 'never';
251 // If you want to report statistics in a cron job instead.
252 // $config['snapshot']['run'] = 'cron';
253
254 // Support for file uploads (attachments),
255 // select supported mimetypes and quotas (in bytes)
256 // $config['attachments']['supported'] = array('image/png', 'application/ogg');
257 // $config['attachments']['file_quota'] = 5000000;
258 // $config['attachments']['user_quota'] = 50000000;
259 // $config['attachments']['monthly_quota'] = 15000000;
260 // $config['attachments']['uploads'] = true;
261
262 // $config['oohembed']['endpoint'] = 'http://oohembed.com/oohembed/';