]>
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 | |
cce28758 | 21 | define('WEB_DEMO_MODE', false); |
8b2cbc33 | 22 | // Demo mode with reduced functionality. |
13528002 AD |
23 | // Warning: this option is obsolete. Don't rely on it being |
24 | // checked in all necessary places. | |
7a991cac | 25 | |
cce28758 AD |
26 | define('ICONS_DIR', "icons"); |
27 | define('ICONS_URL', "icons"); | |
56a2fd35 | 28 | // Local and URL path to the directory, where feed favicons are stored. |
c8437f35 | 29 | |
cce28758 | 30 | define('SINGLE_USER_MODE', true); |
8b2cbc33 AD |
31 | // Operate in single user mode, disables all functionality related to |
32 | // multiple users. | |
30a49c92 | 33 | |
cce28758 | 34 | define('DAEMON_REFRESH_ONLY', false); |
30a49c92 | 35 | // updates to all feeds will only run when the backend script is |
0d436179 AD |
36 | // invoked with a "daemon" option on the URI stem. This is useful when you |
37 | // are hosting multi-user system and want to control how often | |
38 | // feeds are being updated. | |
39 | ||
40 | // An example wget command line below will invoke an update every 30 | |
41 | // minutes, with output being sent to /dev/null and the timeout set to | |
42 | // 10 minutes so that wget does not time out. Substitute your site name | |
43 | // and tt-rss path as necessary. | |
30a49c92 | 44 | // |
0d436179 | 45 | // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://www.your-site.xxx/tt-rss/backend.php?op=globalUpdateFeeds&daemon=1" |
30a49c92 AD |
46 | // |
47 | ||
1f2b01ed | 48 | // The alternative approach is to run update_feeds.php from your crontab |
a47a3f82 AD |
49 | // with command line PHP interpreter. Don't forget to chdir() into TT-RSS |
50 | // directory or it won't be able to find includes. E.g. | |
51 | // | |
52 | // */30 * * * * cd $TTRSS_DIRECTORY && ./update_feeds.php >/dev/null 2>&1 | |
b3295162 AD |
53 | |
54 | // Another alternative approach is to run update_daemon.php in the background | |
55 | // on the server, which allows user-scheduled updates and continous | |
56 | // feed updating in the background. This is the recommended way at the moment. | |
a47a3f82 | 57 | |
c3d74dca | 58 | define('SMART_RPC_COUNTERS', false); |
bbc92e50 AD |
59 | // If enabled, stores feed counter information on the server side and sends |
60 | // only diffs to the client. In the nutshell, it saves your bandwidth and | |
c3d74dca AD |
61 | // makes UI more responsive, but eats server memory. |
62 | // This option can introduce a lot of weird interface glitches in | |
63 | // some use-cases (if you have more than one tt-rss window open, for example) | |
64 | // so it is disabled by default. | |
bbc92e50 | 65 | |
65cd0f74 | 66 | define('GLOBAL_ENABLE_LABELS', false); |
cfaba6df AD |
67 | // Labels are a security risk, so this option can globally disable them for all users. |
68 | ||
72932a75 AD |
69 | define('MAIL_RESET_PASS', true); |
70 | // Send mail to user on password reset | |
71 | ||
9cd7c995 AD |
72 | define('MAIL_FROM', 'TT-RSS Daemon <noreply@some.ttrss.host.dom>'); |
73 | // Pretty obvious, I suppose. Used for email digests & password notifications. | |
e2f728be AD |
74 | |
75 | define('ENABLE_FEED_BROWSER', true); | |
76 | // Enable or disable local feed browser | |
7d7cbaf5 AD |
77 | |
78 | define('TMP_DIRECTORY', '/tmp'); | |
79 | // Directory for temporary files | |
f5de0d8d AD |
80 | |
81 | define('FEEDS_FRAME_REFRESH', 600); | |
82 | // Auto refresh interval for feeds frame (in seconds) | |
cbd8650d AD |
83 | |
84 | define('MAX_UPDATE_TIME', 0); | |
85 | // Limit one update sequence run to this number of seconds. | |
86 | // The valiue is not exact, because it is being checked between feed updates, | |
87 | // which could use abritrary amount of time. Feeds which could not be updated | |
88 | // in time, are being skipped. | |
89 | // If this option is enabled (non-zero) feeds are updated in random order. | |
90 | // It is also recommended to set FEEDS_FRAME_REFRESH to a lower value if using | |
91 | // this option. | |
de696427 | 92 | |
085a5a74 | 93 | define('ENABLE_UPDATE_DAEMON', false); |
b3295162 AD |
94 | // This enables different mechanism for user-triggered updates designed |
95 | // for update daemon running in background on the server. | |
085a5a74 | 96 | // This option suggests FEEDS_FRAME_REFRESH set to a small value |
b2620faa | 97 | // (like 60 seconds, depending on number of users and server/bandwidth load). |
a561fe73 | 98 | |
78ea1de0 AD |
99 | define('DAEMON_SLEEP_INTERVAL', 120); |
100 | // Interval between update daemon update runs | |
101 | ||
03f321db | 102 | define('DATABASE_BACKED_SESSIONS', false); |
2ab29ac6 | 103 | // Store session information in a database, recommended for multiuser |
5854b016 AD |
104 | // configurations. Doesn't seem to work for everyone, so enable with caution. |
105 | // tt-rss uses default PHP session storing mechanism if disabled. | |
8fd92701 | 106 | |
09018e95 | 107 | define('SESSION_CHECK_ADDRESS', true); |
916f788a | 108 | // Bind session to client IP address (recommended) |
09018e95 | 109 | |
377a3e8b | 110 | define('SESSION_COOKIE_LIFETIME', 0); |
f7c390b8 AD |
111 | // Default lifetime of a session (e.g. login) cookie. In seconds, |
112 | // 0 means cookie will be deleted when browser closes. | |
898a9cdb AD |
113 | |
114 | define('SESSION_EXPIRE_TIME', 86400); | |
115 | // Hard expiration limit for sessions. Should be | |
f7c390b8 | 116 | // greater or equal to SESSION_COOKIE_LIFETIME |
898a9cdb | 117 | |
5f2cd401 | 118 | define('DAEMON_UPDATE_LOGIN_LIMIT', 0); |
eed55fd3 AD |
119 | // Stop updating feeds of user who was never logged in |
120 | // in specified amount of days. 0 disables. | |
121 | ||
b72c3ef8 AD |
122 | define('CHECK_FOR_NEW_VERSION', true); |
123 | // Check for new versions of tt-rss when entering preferences. | |
124 | ||
3a7a4bbc | 125 | define('USE_CURL_FOR_ICONS', false); |
c798704b AD |
126 | // Fetch favicons using CURL, useful if your PHP has disabled remote fopen() |
127 | ||
1ddba275 AD |
128 | define('DIGEST_ENABLE', true); |
129 | // Global option to enable daily digests | |
130 | ||
9cd7c995 | 131 | define('DIGEST_HOSTNAME', 'some.ttrss.host.dom'); |
9a61ce6d AD |
132 | // Hostname for email digest signature |
133 | ||
9cd7c995 AD |
134 | define('DIGEST_EMAIL_LIMIT', 10); |
135 | // The maximum amount of emails sent in one digest batch | |
136 | ||
99018440 AD |
137 | define('DAEMON_SENDS_DIGESTS', true); |
138 | // If update daemon and update_feeds should send digests | |
139 | // Disable if you prefer querying special URL (see wiki) | |
140 | ||
cc17c205 AD |
141 | define('ENABLE_TRANSLATIONS', false); |
142 | // Enable experimental support for interface translations | |
143 | // based on PHP-Gettext. This is of no much use right now. | |
144 | ||
145 | define('CONFIG_VERSION', 7); | |
f2c43604 | 146 | // Expected config version. Please update this option in config.php |
fef8a1e4 AD |
147 | // if necessary (after migrating all new options from this file). |
148 | ||
72932a75 | 149 | // vim:ft=php |
7d4c898a | 150 | ?> |