]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - config.php.sample
Merge branch 'master' of git://gitorious.org/laconica/brianjesse-clone into brianjess...
[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
34 # If you want logging sent to a file instead of syslog
35 #$config['site']['logfile'] = '/tmp/laconica.log';
36
37 # Enables extra log information, for example full details of PEAR DB errors
38 #$config['site']['logdebug'] = true;
39
40 #To set your own logo, overriding the one in the theme
41 #$config['site']['logo'] = '/mylogo.png';
42
43 # This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
44 # Set it to match your actual database
45
46 $config['db']['database'] = 'mysql://laconica:microblog@localhost/laconica';
47 #$config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/laconica.ini';
48 # *** WARNING *** WARNING *** WARNING *** WARNING ***
49 # Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
50 # !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
51 # ours.
52 # *** WARNING *** WARNING *** WARNING *** WARNING ***
53 #$config['db']['debug'] = 0;
54 #$config['db']['db_driver'] = 'MDB2';
55
56 #Database type. For mysql, these defaults are fine. For postgresql, set
57 #'quote_identifiers' to true and 'type' to 'pgsql':
58 #$config['db']['quote_identifiers'] = false;
59 #$config['db']['type'] = 'mysql';
60
61 #session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
62
63 #Standard fancy-url clashes prevented by not allowing nicknames on a blacklist
64 #Add your own here. Note: empty array by default
65 #$config['nickname']['blacklist'][] = 'scobleizer';
66
67 # sphinx search
68 $config['sphinx']['enabled'] = false;
69 $config['sphinx']['server'] = 'localhost';
70 $config['sphinx']['port'] = 3312;
71
72 # Users to populate the 'Featured' tab
73 #$config['nickname']['featured'][] = 'scobleizer';
74
75 # xmpp
76 #$config['xmpp']['enabled'] = false;
77 #$config['xmpp']['server'] = 'server.example.net';
78 #$config['xmpp']['host'] = NULL;        # Only set if different from server
79 #$config['xmpp']['port'] = 5222;
80 #$config['xmpp']['user'] = 'update';
81 #$config['xmpp']['encryption'] = false;
82 #$config['xmpp']['resource'] = 'uniquename';
83 #$config['xmpp']['password'] = 'blahblahblah';
84 #$config['xmpp']['public'][] = 'someindexer@example.net';
85 #$config['xmpp']['debug'] = false;
86
87 #Default locale info
88 #$config['site']['timezone'] = 'Pacific/Auckland';
89 #$config['site']['language'] = 'en_NZ';
90
91 #Email info, used for all outbound email
92 #$config['mail']['notifyfrom'] = 'microblog@example.net';
93 #$config['mail']['domain'] = 'microblog.example.net';
94 # See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
95 #$config['mail']['backend'] = 'smtp';
96 #$config['mail']['params'] = array(
97 #                                                       'host' => 'localhost',
98 #                                                       'port' => 25,
99 #                                                       );
100 #For incoming email, if enabled. Defaults to site server name.
101 #$config['mail']['domain'] = 'incoming.example.net';
102
103 #exponential decay factor for tags, default 10 days
104 #raise this if traffic is slow, lower it if it's fast
105 #$config['tag']['dropoff'] = 86400.0 * 10;
106
107 #exponential decay factor for popular (most favorited notices)
108 #default 10 days -- similar to tag dropoff
109 #$config['popular']['dropoff'] = 86400.0 * 10;
110
111 #optionally show non-local messages in public timeline
112 #$config['public']['localonly'] = false;
113
114 #hide certain users from public pages, by ID
115 #$config['public']['blacklist'][] = 123;
116 #$config['public']['blacklist'][] = 2307;
117
118 #Mark certain notice sources as automatic and thus not
119 #appropriate for public feed
120 #$config['public]['autosource'][] = 'twitterfeed';
121 #$config['public]['autosource'][] = 'rssdent';
122 #$config['public]['autosource'][] = 'Ping.Fm';
123 #$config['public]['autosource'][] = 'HelloTxt';
124 #$config['public]['autosource'][] = 'Updating.Me';
125
126 #Do notice broadcasts offline
127 #If you use this, you must run the six offline daemons in the
128 #background. See the README for details.
129 #$config['queue']['enabled'] = true;
130
131 #The following customise the behaviour of the various daemons:
132 #$config['daemon']['piddir'] = '/var/run';
133 #$config['daemon']['user'] = false;
134 #$config['daemon']['group'] = false;
135
136 #For installations with high traffic, laconica can use MemCached to cache
137 #frequently requested information. Only enable the following if you have
138 #MemCached up and running:
139 #$config['memcached']['enabled'] = false;
140 #$config['memcached']['server'] = 'localhost';
141 #$config['memcached']['port'] = 11211;
142
143 #Twitter integration source attribute. Note: default is Laconica
144 #$config['integration']['source'] = 'Laconica';
145
146 # Edit throttling. Off by default. If turned on, you can only post 20 notices
147 # every 10 minutes. Admins may want to play with the settings to minimize inconvenience for
148 # real users without getting uncontrollable floods from spammers or runaway bots.
149
150 #$config['throttle']['enabled'] = true;
151 #$config['throttle']['count'] = 100;
152 #$config['throttle']['timespan'] = 3600;
153
154 # List of users banned from posting (nicknames and/or IDs)
155 #$config['profile']['banned'][] = 'hacker';
156 #$config['profile']['banned'][] = 12345;
157
158 # Config section for the built-in Facebook application
159 #$config['facebook']['apikey'] = 'APIKEY';
160 #$config['facebook']['secret'] = 'SECRET';
161
162 # Add Google Analytics
163 # require_once('plugins/GoogleAnalyticsPlugin.php');
164 # $ga = new GoogleAnalyticsPlugin('your secret code');
165
166 # Use Templating (template: /tpl/index.php)
167 # require_once('plugins/TemplatePlugin.php');
168 # $tpl = new TemplatePlugin();
169
170 #Don't allow saying the same thing more than once per hour
171 #$config['site']['dupelimit'] = 3600;
172 #Don't enforce the dupe limit
173 #$config['site']['dupelimit'] = -1;
174
175 #Base string for minting Tag URIs in Atom feeds. Defaults to
176 #"yourserver,2009". This needs to be configured properly for your Atom
177 #feeds to validate.  See: http://www.faqs.org/rfcs/rfc4151.html and
178 #http://taguri.org/ Examples:
179 #$config['integration']['taguri'] = 'example.net,2008';
180 #$config['integration']['taguri'] = 'admin@example.net,2009-03-09'
181
182 #Don't use SSL
183 #$config['site']['ssl'] = 'never';
184 #Use SSL only for sensitive pages (like login, password change)
185 #$config['site']['ssl'] = 'sometimes';
186 #Use SSL for all pages
187 #$config['site']['ssl'] = 'always';
188
189 #Use a different hostname for SSL-encrypted pages
190 #$config['site']['sslserver'] = 'secure.example.org';