]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - config.php.sample
Refactored new sections code to proper classes and added notice link to links in...
[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 # 'direct' for direct notice links in sections
37 # 'attachment' for notice attachment links in sections
38 # left undefined, no link is showed
39 #$config['site']['notice_link'] = 'attachment';
40 #$config['site']['notice_link'] = 'direct';
41
42 # If you want logging sent to a file instead of syslog
43 #$config['site']['logfile'] = '/tmp/laconica.log';
44
45 # Enables extra log information, for example full details of PEAR DB errors
46 #$config['site']['logdebug'] = true;
47
48 #To set your own logo, overriding the one in the theme
49 #$config['site']['logo'] = '/mylogo.png';
50
51 # This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
52 # Set it to match your actual database
53
54 $config['db']['database'] = 'mysql://laconica:microblog@localhost/laconica';
55 #$config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/laconica.ini';
56 # *** WARNING *** WARNING *** WARNING *** WARNING ***
57 # Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
58 # !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
59 # ours.
60 # *** WARNING *** WARNING *** WARNING *** WARNING ***
61 #$config['db']['debug'] = 0;
62 #$config['db']['db_driver'] = 'MDB2';
63
64 #Database type. For mysql, these defaults are fine. For postgresql, set
65 #'quote_identifiers' to true and 'type' to 'pgsql':
66 #$config['db']['quote_identifiers'] = false;
67 #$config['db']['type'] = 'mysql';
68
69 #session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
70
71 #Standard fancy-url clashes prevented by not allowing nicknames on a blacklist
72 #Add your own here. Note: empty array by default
73 #$config['nickname']['blacklist'][] = 'scobleizer';
74
75 # sphinx search
76 $config['sphinx']['enabled'] = false;
77 $config['sphinx']['server'] = 'localhost';
78 $config['sphinx']['port'] = 3312;
79
80 # Users to populate the 'Featured' tab
81 #$config['nickname']['featured'][] = 'scobleizer';
82
83 # xmpp
84 #$config['xmpp']['enabled'] = false;
85 #$config['xmpp']['server'] = 'server.example.net';
86 #$config['xmpp']['host'] = NULL;        # Only set if different from server
87 #$config['xmpp']['port'] = 5222;
88 #$config['xmpp']['user'] = 'update';
89 #$config['xmpp']['encryption'] = false;
90 #$config['xmpp']['resource'] = 'uniquename';
91 #$config['xmpp']['password'] = 'blahblahblah';
92 #$config['xmpp']['public'][] = 'someindexer@example.net';
93 #$config['xmpp']['debug'] = 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 # Enable bidirectional Twitter bridge
160 #$config['twitterbridge']['enabled'] = true;
161
162 #Twitter integration source attribute. Note: default is Laconica
163 #$config['integration']['source'] = 'Laconica';
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 # Facebook Connect plugin (Needs valid APIKEY above)
182 #require_once(INSTALLDIR.'/plugins/FBConnect/FBConnectPlugin.php');
183 #$fbc = new FBConnectPlugin();
184
185 # Add Google Analytics
186 # require_once('plugins/GoogleAnalyticsPlugin.php');
187 # $ga = new GoogleAnalyticsPlugin('your secret code');
188
189 # Use Templating (template: /tpl/index.php)
190 # require_once('plugins/TemplatePlugin.php');
191 # $tpl = new TemplatePlugin();
192
193 #Don't allow saying the same thing more than once per hour
194 #$config['site']['dupelimit'] = 3600;
195 #Don't enforce the dupe limit
196 #$config['site']['dupelimit'] = -1;
197
198 #Base string for minting Tag URIs in Atom feeds. Defaults to
199 #"yourserver,2009". This needs to be configured properly for your Atom
200 #feeds to validate.  See: http://www.faqs.org/rfcs/rfc4151.html and
201 #http://taguri.org/ Examples:
202 #$config['integration']['taguri'] = 'example.net,2008';
203 #$config['integration']['taguri'] = 'admin@example.net,2009-03-09'
204
205 #Don't use SSL
206 #$config['site']['ssl'] = 'never';
207 #Use SSL only for sensitive pages (like login, password change)
208 #$config['site']['ssl'] = 'sometimes';
209 #Use SSL for all pages
210 #$config['site']['ssl'] = 'always';
211
212 #Use a different hostname for SSL-encrypted pages
213 #$config['site']['sslserver'] = 'secure.example.org';
214
215 #If you have a lot of status networks on the same server, you can
216 #store the site data in a database and switch as follows
217 #Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet');
218 #if (!Status_network::setupSite($_server, $_path)) {
219 #        print "Error\n";
220 #        exit(1);
221 #}