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