]> git.wh0rd.org - tt-rss.git/blame - config.php-dist
fix duplicate RCHK check while appending headlines
[tt-rss.git] / config.php-dist
CommitLineData
20862e58 1<?php
09e8bdfd
AD
2 // *******************************************
3 // *** Database configuration (important!) ***
4 // *******************************************
5
cce28758
AD
6 define('DB_TYPE', "pgsql"); // or mysql
7 define('DB_HOST', "localhost");
8 define('DB_USER', "fox");
9 define('DB_NAME', "fox");
10 define('DB_PASS', "XXXXXX");
befc807f 11 //define('DB_PORT', '5432'); // when neeeded, PG-only
648472a7 12
09e8bdfd
AD
13 define('MYSQL_CHARSET', 'UTF8');
14 // Connection charset for MySQL. If you have a legacy database and/or experience
15 // garbage unicode characters with this option, try setting it to a blank string.
16
17 // ***********************************
18 // *** Basic settings (important!) ***
19 // ***********************************
20
edfab7bd
AD
21 define('SELF_URL_PATH', 'http://yourserver/tt-rss/');
22 // Full URL of your tt-rss installation. This should be set to the
23 // location of tt-rss directory, e.g. http://yourserver/tt-rss/
24 // You need to set this option correctly otherwise several features
25 // including PUSH, bookmarklets and browser integration will not work properly.
ed102aa0 26
09e8bdfd 27 define('SINGLE_USER_MODE', false);
61e420e9
AD
28 // Operate in single user mode, disables all functionality related to
29 // multiple users.
09e8bdfd
AD
30
31 // *****************************
32 // *** Files and directories ***
33 // *****************************
34
35 define('PHP_EXECUTABLE', '/usr/bin/php');
36 // Path to PHP executable, used for various command-line tt-rss programs
37
38 define('LOCK_DIRECTORY', 'lock');
39 // Directory for lockfiles, must be writable to the user you run
40 // daemon process or cronjobs under.
41
61e420e9
AD
42 define('CACHE_DIR', 'cache');
43 // Local cache directory for RSS feed content.
baef3dfe 44
81745ce7
AD
45 define('ICONS_DIR', "feed-icons");
46 define('ICONS_URL', "feed-icons");
56a2fd35 47 // Local and URL path to the directory, where feed favicons are stored.
15ea0691
AD
48 // Unless you really know what you're doing, please keep those relative
49 // to tt-rss main directory.
c8437f35 50
0d421af8
AD
51 // **********************
52 // *** Authentication ***
53 // **********************
54
55 define('AUTH_MODULES', 'internal');
56 // Comma-separated list of authentication modules to use.
57 // Available modules are:
f922746b
AD
58 // internal - tt-rss internal user DB
59 // remote - use server REMOTE_USER variable or client SSL certificate if enabled
60 // imap - authenticates using an IMAP server (check classes/auth/imap.php for some
61 // stuff you need to put into config.php)
0d421af8
AD
62 // in preferences
63 //
64
65 define('AUTH_AUTO_CREATE', true);
66 // Allow authentication modules to auto-create users in tt-rss internal
67 // database when authenticated successfully.
68
69 define('AUTH_AUTO_LOGIN', true);
70 // Automatically login user on remote or other kind of externally supplied
71 // authentication, otherwise redirect to login form as normal.
72 // If set to true, users won't be able to set application language
73 // and settings profile.
74
09e8bdfd
AD
75 // *********************
76 // *** Feed settings ***
77 // *********************
8fd92701 78
09e8bdfd
AD
79 define('FORCE_ARTICLE_PURGE', 0);
80 // When this option is not 0, users ability to control feed purging
81 // intervals is disabled and all articles (which are not starred)
82 // older than this amount of days are purged.
14073c0a 83
09e8bdfd 84 // *** PubSubHubbub settings ***
1fb2d0d8 85
09e8bdfd
AD
86 define('PUBSUBHUBBUB_HUB', '');
87 // URL to a PubSubHubbub-compatible hub server. If defined, "Published
88 // articles" generated feed would automatically become PUSH-enabled.
a8931123 89
d89c6dd8 90 define('PUBSUBHUBBUB_ENABLED', false);
09e8bdfd
AD
91 // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
92 // won't try to subscribe to PUSH feed updates.
a8931123 93
09e8bdfd
AD
94 // *********************
95 // *** Sphinx search ***
96 // *********************
97
98 define('SPHINX_ENABLED', false);
99 // Enable fulltext search using Sphinx (http://www.sphinxsearch.com)
100 // Please see http://tt-rss.org/wiki/SphinxSearch for more information.
a8931123 101
09e8bdfd
AD
102 define('SPHINX_INDEX', 'ttrss');
103 // Index name in Sphinx configuration. You can specify multiple indexes
104 // as a comma-separated string.
105
09e8bdfd
AD
106 // ***********************************
107 // *** Self-registrations by users ***
108 // ***********************************
64eb624c 109
4f7956b3
AD
110 define('ENABLE_REGISTRATION', false);
111 // Allow users to register themselves. Please be vary that allowing
112 // random people to access your tt-rss installation is a security risk
113 // and potentially might lead to data loss or server exploit. Disabled
114 // by default.
115
116 define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
117 // Email address to send new user notifications to.
118
119 define('REG_MAX_USERS', 10);
120 // Maximum amount of users which will be allowed to register on this
121 // system. 0 - no limit.
122
09e8bdfd
AD
123 // **********************************
124 // *** Cookies and login sessions ***
125 // **********************************
126
127 define('SESSION_COOKIE_LIFETIME', 0);
128 // Default lifetime of a session (e.g. login) cookie. In seconds,
129 // 0 means cookie will be deleted when browser closes.
63771c48 130
09e8bdfd
AD
131 define('SESSION_EXPIRE_TIME', 86400);
132 // Hard expiration limit for sessions. Should be
133 // greater or equal to SESSION_COOKIE_LIFETIME
3907ef71 134
09e8bdfd
AD
135 define('SESSION_CHECK_ADDRESS', 1);
136 // Check client IP address when validating session:
137 // 0 - disable checking
138 // 1 - check first 3 octets of an address (recommended)
139 // 2 - check first 2 octets of an address
140 // 3 - check entire address
e4f7f8df 141
09e8bdfd
AD
142 // *********************************
143 // *** Email and digest settings ***
144 // *********************************
e4f7f8df 145
09e8bdfd
AD
146 define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
147 define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
148 // Name, address and subject for sending outgoing mail. This applies
149 // to password reset notifications, digest emails and any other mail.
150
151 define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
152 // Subject line for email digests
153
154 define('SMTP_HOST', '');
155 // SMTP Host to send outgoing mail. Blank - use system MTA.
156
157 define('SMTP_LOGIN', '');
158 define('SMTP_PASSWORD', '');
159 // These two options enable SMTP authentication when sending
160 // outgoing mail. Only used with SMTP_HOST
161
09e8bdfd
AD
162 // ***************************************
163 // *** Other settings (less important) ***
164 // ***************************************
65eebd13 165
09e8bdfd
AD
166 define('CHECK_FOR_NEW_VERSION', true);
167 // Check for new versions of tt-rss automatically.
168
09e8bdfd
AD
169 define('ENABLE_GZIP_OUTPUT', false);
170 // Selectively gzip output to improve wire performance. This requires
171 // PHP Zlib extension on the server.
8d34aa5b
AD
172 // Enabling this can break tt-rss in several httpd/php configurations,
173 // if you experience weird errors and tt-rss failing to start, blank pages
174 // after login, or content encoding errors, disable it.
e2bcd11b 175
7252abe3 176 define('PLUGINS', 'note');
20b86c79
AD
177 // Comma-separated list of plugins to load automatically for all users.
178 // System plugins have to be specified here.
179 // Users may enable other user plugins from Preferences/Plugins but may not
180 // disable plugins specified in this list.
181
09e8bdfd
AD
182 define('FEEDBACK_URL', '');
183 // Displays an URL for users to provide feedback or comments regarding
184 // this instance of tt-rss. Can lead to a forum, contact email, etc.
f9ac31d6 185
6e658547 186 define('CONFIG_VERSION', 26);
f2c43604 187 // Expected config version. Please update this option in config.php
fef8a1e4
AD
188 // if necessary (after migrating all new options from this file).
189
72932a75 190 // vim:ft=php
7d4c898a 191?>