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