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