]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - config.php.sample
Script to update laconica.pot from source, and the results of running it
[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 #For contact email, defaults to $_SERVER["SERVER_ADMIN"]
22 #$config['site']['email'] = 'admin@example.net';
23 #Brought by...
24 #$config['site']['broughtby'] = 'Individual or Company';
25 #$config['site']['broughtbyurl'] = 'http://example.net/';
26 #If you don't want to let users register (say, for a one-person install)
27 #Crude but effective -- register everybody, then lock down
28 #$config['site']['closed'] = true;
29 #Only allow registration for people invited by another user
30 #$config['site']['inviteonly'] = true;
31
32 # If you want logging sent to a file instead of syslog
33 #$config['site']['logfile'] = '/tmp/laconica.log';
34
35 # This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
36 # Set it to match your actual database
37
38 $config['db']['database'] = 'mysql://laconica:microblog@localhost/laconica';
39 #$config['db']['ini_your_db_name'] = $config['db']['schema_location'].'/laconica.ini';
40 # *** WARNING *** WARNING *** WARNING *** WARNING ***
41 # Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
42 # !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
43 # ours.
44 # *** WARNING *** WARNING *** WARNING *** WARNING ***
45 #$config['db']['debug'] = 0;
46 #$config['db']['db_driver'] = 'MDB2';
47
48 #Database type. For mysql, these defaults are fine. For postgresql, set
49 #'quote_identifiers' to true and 'type' to 'pgsql':
50 #$config['db']['quote_identifiers'] = false;
51 #$config['db']['type'] = 'mysql';
52
53 #session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
54
55 #Standard fancy-url clashes prevented by not allowing nicknames on a blacklist
56 #Add your own here. Note: empty array by default
57 #$config['nickname']['blacklist'][] = 'scobleizer';
58
59 # xmpp
60 #$config['xmpp']['enabled'] = false;
61 #$config['xmpp']['server'] = 'server.example.net';
62 #$config['xmpp']['host'] = NULL;        # Only set if different from server
63 #$config['xmpp']['port'] = 5222;
64 #$config['xmpp']['user'] = 'update';
65 #$config['xmpp']['encryption'] = false;
66 #$config['xmpp']['resource'] = 'uniquename';
67 #$config['xmpp']['password'] = 'blahblahblah';
68 #$config['xmpp']['public'][] = 'someindexer@example.net';
69 #$config['xmpp']['debug'] = false;
70
71 #Default locale info
72 #$config['site']['timezone'] = 'Pacific/Auckland';
73 #$config['site']['language'] = 'en_NZ';
74
75 #Email info, used for all outbound email
76 #$config['mail']['notifyfrom'] = 'microblog@example.net';
77 #$config['mail']['domain'] = 'microblog.example.net';
78 # See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
79 #$config['mail']['backend'] = 'smtp';
80 #$config['mail']['params'] = array(
81 #                                                       'host' => 'localhost',
82 #                                                       'port' => 25,
83 #                                                       );
84 #For incoming email, if enabled. Defaults to site server name.
85 #$config['mail']['domain'] = 'incoming.example.net';
86
87
88 #exponential decay factor for tags, default 10 days
89 #raise this if traffic is slow, lower it if it's fast
90 #$config['tag']['dropoff'] = 86400.0 * 10;
91
92 #optionally show non-local messages in public timeline
93 #$config['public']['localonly'] = false;
94
95 #Do notice broadcasts offline
96 #If you use this, you must run the six offline daemons in the
97 #background. See the README for details.
98 #$config['queue']['enabled'] = true;
99
100 #The following customise the behaviour of the various daemons:
101 #$config['daemon']['piddir'] = '/var/run';
102 #$config['daemon']['user'] = false;
103 #$config['daemon']['group'] = false;
104
105 #For installations with high traffic, laconica can use MemCached to cache
106 #frequently requested information. Only enable the following if you have
107 #MemCached up and running:
108 #$config['memcached']['enabled'] = false;
109 #$config['memcached']['server'] = 'localhost';
110 #$config['memcached']['port'] = 11211;
111
112 #Twitter integration source attribute. Note: default is Laconica
113 #$config['integration']['source'] = 'Laconica';