| 1 |
<?php |
|---|
| 2 |
// Your RDBMS must be configured to accept connections |
|---|
| 3 |
// via TCP/IP and authentified by password. |
|---|
| 4 |
|
|---|
| 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"); |
|---|
| 10 |
//define('DB_PORT', '5432'); // when neeeded, PG-only |
|---|
| 11 |
|
|---|
| 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 |
|
|---|
| 18 |
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); |
|---|
| 19 |
// Local cache directory for RSS feeds |
|---|
| 20 |
|
|---|
| 21 |
define('MAGPIE_CACHE_AGE', 60*30); |
|---|
| 22 |
// How long to store cached RSS objects? In seconds. |
|---|
| 23 |
// Defaults to 30 minutes |
|---|
| 24 |
|
|---|
| 25 |
define('WEB_DEMO_MODE', false); |
|---|
| 26 |
// Demo mode with reduced functionality. |
|---|
| 27 |
// Warning: this option is obsolete. Don't rely on it being |
|---|
| 28 |
// checked in all necessary places. |
|---|
| 29 |
|
|---|
| 30 |
define('ICONS_DIR', "icons"); |
|---|
| 31 |
define('ICONS_URL', "icons"); |
|---|
| 32 |
// Local and URL path to the directory, where feed favicons are stored. |
|---|
| 33 |
|
|---|
| 34 |
define('SINGLE_USER_MODE', true); |
|---|
| 35 |
// Operate in single user mode, disables all functionality related to |
|---|
| 36 |
// multiple users. |
|---|
| 37 |
|
|---|
| 38 |
define('SMART_RPC_COUNTERS', false); |
|---|
| 39 |
// If enabled, stores feed counter information on the server side and sends |
|---|
| 40 |
// only diffs to the client. In the nutshell, it saves your bandwidth and |
|---|
| 41 |
// makes UI more responsive, but eats server memory. |
|---|
| 42 |
// This option can introduce a lot of weird interface glitches in |
|---|
| 43 |
// some use-cases (if you have more than one tt-rss window open, for example) |
|---|
| 44 |
// so it is disabled by default. |
|---|
| 45 |
|
|---|
| 46 |
define('GLOBAL_ENABLE_LABELS', false); |
|---|
| 47 |
// Labels are a security risk, so this option can globally disable them for all users. |
|---|
| 48 |
|
|---|
| 49 |
define('MAIL_RESET_PASS', true); |
|---|
| 50 |
// Send mail to user on password reset |
|---|
| 51 |
|
|---|
| 52 |
define('ENABLE_FEED_BROWSER', true); |
|---|
| 53 |
// Enable or disable local feed browser |
|---|
| 54 |
|
|---|
| 55 |
define('TMP_DIRECTORY', '/tmp'); |
|---|
| 56 |
// Directory for temporary files |
|---|
| 57 |
|
|---|
| 58 |
define('FEEDS_FRAME_REFRESH', 600); |
|---|
| 59 |
// Auto refresh interval for feeds frame (in seconds) |
|---|
| 60 |
|
|---|
| 61 |
define('MAX_UPDATE_TIME', 0); |
|---|
| 62 |
// Limit one update sequence run to this number of seconds. |
|---|
| 63 |
// The valiue is not exact, because it is being checked between feed updates, |
|---|
| 64 |
// which could use abritrary amount of time. Feeds which could not be updated |
|---|
| 65 |
// in time, are being skipped. |
|---|
| 66 |
// If this option is enabled (non-zero) feeds are updated in random order. |
|---|
| 67 |
// It is also recommended to set FEEDS_FRAME_REFRESH to a lower value if using |
|---|
| 68 |
// this option. |
|---|
| 69 |
|
|---|
| 70 |
define('ENABLE_UPDATE_DAEMON', false); |
|---|
| 71 |
// This enables different mechanism for user-triggered updates designed |
|---|
| 72 |
// for update daemon running in background on the server. |
|---|
| 73 |
// This option suggests FEEDS_FRAME_REFRESH set to a small value |
|---|
| 74 |
// (like 60 seconds, depending on number of users and server/bandwidth load). |
|---|
| 75 |
|
|---|
| 76 |
define('DAEMON_SLEEP_INTERVAL', 120); |
|---|
| 77 |
// Interval between update daemon update runs |
|---|
| 78 |
|
|---|
| 79 |
define('DATABASE_BACKED_SESSIONS', false); |
|---|
| 80 |
// Store session information in a database, recommended for multiuser |
|---|
| 81 |
// configurations. Doesn't seem to work for everyone, so enable with caution. |
|---|
| 82 |
// tt-rss uses default PHP session storing mechanism if disabled. |
|---|
| 83 |
|
|---|
| 84 |
define('SESSION_CHECK_ADDRESS', true); |
|---|
| 85 |
// Bind session to client IP address (recommended) |
|---|
| 86 |
|
|---|
| 87 |
define('SESSION_COOKIE_LIFETIME', 0); |
|---|
| 88 |
// Default lifetime of a session (e.g. login) cookie. In seconds, |
|---|
| 89 |
// 0 means cookie will be deleted when browser closes. |
|---|
| 90 |
|
|---|
| 91 |
define('SESSION_EXPIRE_TIME', 86400); |
|---|
| 92 |
// Hard expiration limit for sessions. Should be |
|---|
| 93 |
// greater or equal to SESSION_COOKIE_LIFETIME |
|---|
| 94 |
|
|---|
| 95 |
define('DAEMON_UPDATE_LOGIN_LIMIT', 0); |
|---|
| 96 |
// Stop updating feeds of user who was never logged in |
|---|
| 97 |
// in specified amount of days. 0 disables. |
|---|
| 98 |
|
|---|
| 99 |
define('CHECK_FOR_NEW_VERSION', true); |
|---|
| 100 |
// Check for new versions of tt-rss when entering preferences. |
|---|
| 101 |
|
|---|
| 102 |
define('USE_CURL_FOR_ICONS', false); |
|---|
| 103 |
// Fetch favicons using CURL, useful if your PHP has disabled remote fopen() |
|---|
| 104 |
|
|---|
| 105 |
define('DIGEST_ENABLE', true); |
|---|
| 106 |
// Global option to enable daily digests |
|---|
| 107 |
|
|---|
| 108 |
define('DIGEST_EMAIL_LIMIT', 10); |
|---|
| 109 |
// The maximum amount of emails sent in one digest batch |
|---|
| 110 |
|
|---|
| 111 |
define('DAEMON_SENDS_DIGESTS', true); |
|---|
| 112 |
// If update daemon and update_feeds should send digests |
|---|
| 113 |
// Disable if you prefer querying special URL (see wiki) |
|---|
| 114 |
|
|---|
| 115 |
define('ENABLE_TRANSLATIONS', false); |
|---|
| 116 |
// Enable experimental support for interface translations |
|---|
| 117 |
// based on PHP-Gettext. This is of no much use right now. |
|---|
| 118 |
|
|---|
| 119 |
define('MYSQL_CHARSET', ''); |
|---|
| 120 |
// Connection charset for MySQL. Only enable if having charset-related |
|---|
| 121 |
// errors with MySQL (mangled characters, errors when updating feeds, etc). |
|---|
| 122 |
|
|---|
| 123 |
define('ENABLE_SIMPLEPIE', false); |
|---|
| 124 |
// Enables SimplePie RSS parsing library (experimental). When this option |
|---|
| 125 |
// is disabled, Tiny Tiny RSS defaults to Magpie library. |
|---|
| 126 |
|
|---|
| 127 |
// SimplePie is somewhat faster, more robust and less clunky as Magpie. |
|---|
| 128 |
// While it doesn't internally support HTTP Digest authentication |
|---|
| 129 |
// (required for Livejournal protected feeds and such) and SSL, it can |
|---|
| 130 |
// support it when using CURL. |
|---|
| 131 |
|
|---|
| 132 |
// To summarize, if your PHP has CURL extension or you aren't subscribed |
|---|
| 133 |
// to any feeds using HTTP Digest authentication and Magpie XML parsing |
|---|
| 134 |
// errors are bothering you too much, you can try enabling SimplePie. |
|---|
| 135 |
|
|---|
| 136 |
define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache'); |
|---|
| 137 |
// Cache directory for RSS feeds when using SimplePie |
|---|
| 138 |
|
|---|
| 139 |
define('SIMPLEPIE_CACHE_IMAGES', false); |
|---|
| 140 |
// Allow caching feed images when using SimplePie, to bypass hotlink |
|---|
| 141 |
// prevention and such at expense of local disk space and bandwidth. |
|---|
| 142 |
// Note that you (or your users) also have to enable image caching |
|---|
| 143 |
// in feed editor. |
|---|
| 144 |
|
|---|
| 145 |
define('COUNTERS_MAX_AGE', 365); |
|---|
| 146 |
// Hard limit for unread counters calculation. Try tweaking this |
|---|
| 147 |
// parameter to speed up tt-rss when having a huge number of articles |
|---|
| 148 |
// in the database (better yet, enable purging!) |
|---|
| 149 |
|
|---|
| 150 |
define('DIGEST_FROM_NAME', 'Tiny Tiny RSS'); |
|---|
| 151 |
define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom'); |
|---|
| 152 |
// Name, address and subject for sending outgoing mail. This applies |
|---|
| 153 |
// to password reset notifications, digest emails and any other mail. |
|---|
| 154 |
|
|---|
| 155 |
define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours'); |
|---|
| 156 |
// Subject line for email digests |
|---|
| 157 |
|
|---|
| 158 |
define('DIGEST_SMTP_HOST', ''); |
|---|
| 159 |
// SMTP Host to send outgoing mail. Blank - use system MTA. |
|---|
| 160 |
|
|---|
| 161 |
define('DIGEST_SMTP_LOGIN', ''); |
|---|
| 162 |
define('DIGEST_SMTP_PASSWORD', ''); |
|---|
| 163 |
// These two options enable SMTP authentication when sending |
|---|
| 164 |
// outgoing mail. Require DIGEST_SMTP_HOST. |
|---|
| 165 |
|
|---|
| 166 |
define('DAEMON_FEED_LIMIT', 100); |
|---|
| 167 |
// Limits the amount of feeds daemon updates on one run |
|---|
| 168 |
|
|---|
| 169 |
define('ALLOW_REMOTE_USER_AUTH', false); |
|---|
| 170 |
// Set to 'true' if you trust your web server's REMOTE_USER |
|---|
| 171 |
// environment variable to validate that the user is logged in. This |
|---|
| 172 |
// option can be used to integrate tt-rss with Apache's external |
|---|
| 173 |
// authentication modules. |
|---|
| 174 |
|
|---|
| 175 |
define('LOCK_DIRECTORY', '.'); |
|---|
| 176 |
// Directory for lockfiles, must be writable to the user you run |
|---|
| 177 |
// daemon process or cronjobs under. |
|---|
| 178 |
|
|---|
| 179 |
define('ALLOW_SELECT_UPDATE_METHOD', true); |
|---|
| 180 |
// Allow users to select the library to update feeds with - e.g. |
|---|
| 181 |
// Magpie or SimplePie |
|---|
| 182 |
|
|---|
| 183 |
define('ENABLE_GZIP_OUTPUT', false); |
|---|
| 184 |
// Selectively gzip output to improve wire performance. This requires |
|---|
| 185 |
// PHP Zlib extension on the server. |
|---|
| 186 |
|
|---|
| 187 |
define('PHP_EXECUTABLE', '/usr/bin/php'); |
|---|
| 188 |
// Path to PHP executable |
|---|
| 189 |
|
|---|
| 190 |
define('CONFIG_VERSION', 17); |
|---|
| 191 |
// Expected config version. Please update this option in config.php |
|---|
| 192 |
// if necessary (after migrating all new options from this file). |
|---|
| 193 |
|
|---|
| 194 |
// vim:ft=php |
|---|
| 195 |
?> |
|---|