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