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