]>
Commit | Line | Data |
---|---|---|
20862e58 | 1 | <?php |
8b2cbc33 | 2 | // Your RDBMS must be configured to accept connections |
f92db4f5 | 3 | // via TCP/IP and authentified by password. |
648472a7 | 4 | |
cce28758 AD |
5 | define('DB_TYPE', "pgsql"); // or mysql |
6 | define('DB_HOST', "localhost"); | |
7 | define('DB_USER', "fox"); | |
8 | define('DB_NAME', "fox"); | |
9 | define('DB_PASS', "XXXXXX"); | |
befc807f | 10 | //define('DB_PORT', '5432'); // when neeeded, PG-only |
648472a7 | 11 | |
baef3dfe AD |
12 | define('MAGPIE_FETCH_TIME_OUT', 60); |
13 | // Magpie's default timeout is 5 seconds. Some RSS feeds, | |
14 | // such as from large Trac installs, can take significantly | |
15 | // longer than 5 seconds to generate. To prevent failed | |
16 | // updates, increase this. | |
17 | ||
a1a8a2be | 18 | define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); |
f92db4f5 | 19 | // Local cache directory for RSS feeds |
7c5a308d | 20 | |
8cb4f762 AD |
21 | define('MAGPIE_CACHE_AGE', 60*30); |
22 | // How long to store cached RSS objects? In seconds. | |
23 | // Defaults to 30 minutes | |
24 | ||
cce28758 | 25 | define('WEB_DEMO_MODE', false); |
8b2cbc33 | 26 | // Demo mode with reduced functionality. |
13528002 AD |
27 | // Warning: this option is obsolete. Don't rely on it being |
28 | // checked in all necessary places. | |
7a991cac | 29 | |
cce28758 AD |
30 | define('ICONS_DIR', "icons"); |
31 | define('ICONS_URL', "icons"); | |
56a2fd35 | 32 | // Local and URL path to the directory, where feed favicons are stored. |
15ea0691 AD |
33 | // Unless you really know what you're doing, please keep those relative |
34 | // to tt-rss main directory. | |
c8437f35 | 35 | |
cce28758 | 36 | define('SINGLE_USER_MODE', true); |
8b2cbc33 AD |
37 | // Operate in single user mode, disables all functionality related to |
38 | // multiple users. | |
a47a3f82 | 39 | |
c3d74dca | 40 | define('SMART_RPC_COUNTERS', false); |
bbc92e50 AD |
41 | // If enabled, stores feed counter information on the server side and sends |
42 | // only diffs to the client. In the nutshell, it saves your bandwidth and | |
c3d74dca AD |
43 | // makes UI more responsive, but eats server memory. |
44 | // This option can introduce a lot of weird interface glitches in | |
45 | // some use-cases (if you have more than one tt-rss window open, for example) | |
46 | // so it is disabled by default. | |
bbc92e50 | 47 | |
e2f728be AD |
48 | define('ENABLE_FEED_BROWSER', true); |
49 | // Enable or disable local feed browser | |
7d7cbaf5 AD |
50 | |
51 | define('TMP_DIRECTORY', '/tmp'); | |
52 | // Directory for temporary files | |
f5de0d8d AD |
53 | |
54 | define('FEEDS_FRAME_REFRESH', 600); | |
55 | // Auto refresh interval for feeds frame (in seconds) | |
cbd8650d AD |
56 | |
57 | define('MAX_UPDATE_TIME', 0); | |
58 | // Limit one update sequence run to this number of seconds. | |
59 | // The valiue is not exact, because it is being checked between feed updates, | |
60 | // which could use abritrary amount of time. Feeds which could not be updated | |
61 | // in time, are being skipped. | |
62 | // If this option is enabled (non-zero) feeds are updated in random order. | |
63 | // It is also recommended to set FEEDS_FRAME_REFRESH to a lower value if using | |
64 | // this option. | |
de696427 | 65 | |
085a5a74 | 66 | define('ENABLE_UPDATE_DAEMON', false); |
b3295162 AD |
67 | // This enables different mechanism for user-triggered updates designed |
68 | // for update daemon running in background on the server. | |
085a5a74 | 69 | // This option suggests FEEDS_FRAME_REFRESH set to a small value |
b2620faa | 70 | // (like 60 seconds, depending on number of users and server/bandwidth load). |
a561fe73 | 71 | |
78ea1de0 AD |
72 | define('DAEMON_SLEEP_INTERVAL', 120); |
73 | // Interval between update daemon update runs | |
74 | ||
03f321db | 75 | define('DATABASE_BACKED_SESSIONS', false); |
2ab29ac6 | 76 | // Store session information in a database, recommended for multiuser |
5854b016 AD |
77 | // configurations. Doesn't seem to work for everyone, so enable with caution. |
78 | // tt-rss uses default PHP session storing mechanism if disabled. | |
8fd92701 | 79 | |
09018e95 | 80 | define('SESSION_CHECK_ADDRESS', true); |
916f788a | 81 | // Bind session to client IP address (recommended) |
09018e95 | 82 | |
377a3e8b | 83 | define('SESSION_COOKIE_LIFETIME', 0); |
f7c390b8 AD |
84 | // Default lifetime of a session (e.g. login) cookie. In seconds, |
85 | // 0 means cookie will be deleted when browser closes. | |
898a9cdb AD |
86 | |
87 | define('SESSION_EXPIRE_TIME', 86400); | |
88 | // Hard expiration limit for sessions. Should be | |
f7c390b8 | 89 | // greater or equal to SESSION_COOKIE_LIFETIME |
898a9cdb | 90 | |
5f2cd401 | 91 | define('DAEMON_UPDATE_LOGIN_LIMIT', 0); |
eed55fd3 AD |
92 | // Stop updating feeds of user who was never logged in |
93 | // in specified amount of days. 0 disables. | |
94 | ||
b72c3ef8 AD |
95 | define('CHECK_FOR_NEW_VERSION', true); |
96 | // Check for new versions of tt-rss when entering preferences. | |
97 | ||
3a7a4bbc | 98 | define('USE_CURL_FOR_ICONS', false); |
c798704b AD |
99 | // Fetch favicons using CURL, useful if your PHP has disabled remote fopen() |
100 | ||
1ddba275 AD |
101 | define('DIGEST_ENABLE', true); |
102 | // Global option to enable daily digests | |
103 | ||
9cd7c995 AD |
104 | define('DIGEST_EMAIL_LIMIT', 10); |
105 | // The maximum amount of emails sent in one digest batch | |
106 | ||
99018440 AD |
107 | define('DAEMON_SENDS_DIGESTS', true); |
108 | // If update daemon and update_feeds should send digests | |
109 | // Disable if you prefer querying special URL (see wiki) | |
110 | ||
cc17c205 AD |
111 | define('ENABLE_TRANSLATIONS', false); |
112 | // Enable experimental support for interface translations | |
113 | // based on PHP-Gettext. This is of no much use right now. | |
114 | ||
bddc9788 AD |
115 | define('MYSQL_CHARSET', ''); |
116 | // Connection charset for MySQL. Only enable if having charset-related | |
117 | // errors with MySQL (mangled characters, errors when updating feeds, etc). | |
118 | ||
9fdf7824 | 119 | define('ENABLE_SIMPLEPIE', false); |
87b44f5c AD |
120 | // Enables SimplePie RSS parsing library (experimental). When this option |
121 | // is disabled, Tiny Tiny RSS defaults to Magpie library. | |
9fdf7824 | 122 | |
87b44f5c AD |
123 | // SimplePie is somewhat faster, more robust and less clunky as Magpie. |
124 | // While it doesn't internally support HTTP Digest authentication | |
125 | // (required for Livejournal protected feeds and such) and SSL, it can | |
126 | // support it when using CURL. | |
127 | ||
128 | // To summarize, if your PHP has CURL extension or you aren't subscribed | |
129 | // to any feeds using HTTP Digest authentication and Magpie XML parsing | |
130 | // errors are bothering you too much, you can try enabling SimplePie. | |
9fdf7824 | 131 | |
c7d57b66 AD |
132 | define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache'); |
133 | // Cache directory for RSS feeds when using SimplePie | |
134 | ||
dab52d7b | 135 | define('SIMPLEPIE_CACHE_IMAGES', false); |
bc0f0785 AD |
136 | // Allow caching feed images when using SimplePie, to bypass hotlink |
137 | // prevention and such at expense of local disk space and bandwidth. | |
138 | // Note that you (or your users) also have to enable image caching | |
139 | // in feed editor. | |
140 | ||
14073c0a AD |
141 | define('COUNTERS_MAX_AGE', 365); |
142 | // Hard limit for unread counters calculation. Try tweaking this | |
143 | // parameter to speed up tt-rss when having a huge number of articles | |
144 | // in the database (better yet, enable purging!) | |
145 | ||
a8931123 AD |
146 | define('DIGEST_FROM_NAME', 'Tiny Tiny RSS'); |
147 | define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom'); | |
1fb2d0d8 AD |
148 | // Name, address and subject for sending outgoing mail. This applies |
149 | // to password reset notifications, digest emails and any other mail. | |
150 | ||
163a295e | 151 | define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours'); |
1fb2d0d8 | 152 | // Subject line for email digests |
a8931123 AD |
153 | |
154 | define('DIGEST_SMTP_HOST', ''); | |
1fb2d0d8 | 155 | // SMTP Host to send outgoing mail. Blank - use system MTA. |
a8931123 AD |
156 | |
157 | define('DIGEST_SMTP_LOGIN', ''); | |
158 | define('DIGEST_SMTP_PASSWORD', ''); | |
159 | // These two options enable SMTP authentication when sending | |
1fb2d0d8 | 160 | // outgoing mail. Require DIGEST_SMTP_HOST. |
a8931123 | 161 | |
ae4ecd5d | 162 | define('DAEMON_FEED_LIMIT', 100); |
d2bf48f9 | 163 | // Limits the amount of feeds daemon (or a cronjob) updates on one run |
ae4ecd5d | 164 | |
66917e70 AD |
165 | define('ALLOW_REMOTE_USER_AUTH', false); |
166 | // Set to 'true' if you trust your web server's REMOTE_USER | |
167 | // environment variable to validate that the user is logged in. This | |
168 | // option can be used to integrate tt-rss with Apache's external | |
169 | // authentication modules. | |
170 | ||
cfa43e02 AD |
171 | define('LOCK_DIRECTORY', '.'); |
172 | // Directory for lockfiles, must be writable to the user you run | |
173 | // daemon process or cronjobs under. | |
174 | ||
a47fa017 | 175 | define('ALLOW_SELECT_UPDATE_METHOD', true); |
34459667 AD |
176 | // Allow users to select the library to update feeds with - e.g. |
177 | // Magpie or SimplePie | |
178 | ||
04fedbf5 AD |
179 | define('ENABLE_GZIP_OUTPUT', false); |
180 | // Selectively gzip output to improve wire performance. This requires | |
181 | // PHP Zlib extension on the server. | |
182 | ||
64eb624c AD |
183 | define('PHP_EXECUTABLE', '/usr/bin/php'); |
184 | // Path to PHP executable | |
185 | ||
4f7956b3 AD |
186 | define('ENABLE_REGISTRATION', false); |
187 | // Allow users to register themselves. Please be vary that allowing | |
188 | // random people to access your tt-rss installation is a security risk | |
189 | // and potentially might lead to data loss or server exploit. Disabled | |
190 | // by default. | |
191 | ||
192 | define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom'); | |
193 | // Email address to send new user notifications to. | |
194 | ||
195 | define('REG_MAX_USERS', 10); | |
196 | // Maximum amount of users which will be allowed to register on this | |
197 | // system. 0 - no limit. | |
198 | ||
63771c48 AD |
199 | define('FEEDBACK_URL', ''); |
200 | // Displays an URL for users to provide feedback or comments regarding | |
201 | // this instance of tt-rss. Can lead to a forum, contact email, etc. | |
202 | ||
3907ef71 AD |
203 | define('FORCE_ARTICLE_PURGE', 0); |
204 | // When this option is not 0, users ability to control feed purging | |
205 | // intervals is disabled and all articles (which are not starred) | |
206 | // older than this amount of days are purged. | |
207 | ||
bd6576f8 | 208 | define('CONFIG_VERSION', 18); |
f2c43604 | 209 | // Expected config version. Please update this option in config.php |
fef8a1e4 AD |
210 | // if necessary (after migrating all new options from this file). |
211 | ||
72932a75 | 212 | // vim:ft=php |
7d4c898a | 213 | ?> |