]> git.wh0rd.org - tt-rss.git/blame - config.php-dist
change ttrss_prefs.help_text type to text
[tt-rss.git] / config.php-dist
CommitLineData
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.
c8437f35 33
cce28758 34 define('SINGLE_USER_MODE', true);
8b2cbc33
AD
35 // Operate in single user mode, disables all functionality related to
36 // multiple users.
a47a3f82 37
c3d74dca 38 define('SMART_RPC_COUNTERS', false);
bbc92e50
AD
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
c3d74dca
AD
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.
bbc92e50 45
65cd0f74 46 define('GLOBAL_ENABLE_LABELS', false);
cfaba6df
AD
47 // Labels are a security risk, so this option can globally disable them for all users.
48
72932a75
AD
49 define('MAIL_RESET_PASS', true);
50 // Send mail to user on password reset
51
e2f728be
AD
52 define('ENABLE_FEED_BROWSER', true);
53 // Enable or disable local feed browser
7d7cbaf5
AD
54
55 define('TMP_DIRECTORY', '/tmp');
56 // Directory for temporary files
f5de0d8d
AD
57
58 define('FEEDS_FRAME_REFRESH', 600);
59 // Auto refresh interval for feeds frame (in seconds)
cbd8650d
AD
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.
de696427 69
085a5a74 70 define('ENABLE_UPDATE_DAEMON', false);
b3295162
AD
71 // This enables different mechanism for user-triggered updates designed
72 // for update daemon running in background on the server.
085a5a74 73 // This option suggests FEEDS_FRAME_REFRESH set to a small value
b2620faa 74 // (like 60 seconds, depending on number of users and server/bandwidth load).
a561fe73 75
78ea1de0
AD
76 define('DAEMON_SLEEP_INTERVAL', 120);
77 // Interval between update daemon update runs
78
03f321db 79 define('DATABASE_BACKED_SESSIONS', false);
2ab29ac6 80 // Store session information in a database, recommended for multiuser
5854b016
AD
81 // configurations. Doesn't seem to work for everyone, so enable with caution.
82 // tt-rss uses default PHP session storing mechanism if disabled.
8fd92701 83
09018e95 84 define('SESSION_CHECK_ADDRESS', true);
916f788a 85 // Bind session to client IP address (recommended)
09018e95 86
377a3e8b 87 define('SESSION_COOKIE_LIFETIME', 0);
f7c390b8
AD
88 // Default lifetime of a session (e.g. login) cookie. In seconds,
89 // 0 means cookie will be deleted when browser closes.
898a9cdb
AD
90
91 define('SESSION_EXPIRE_TIME', 86400);
92 // Hard expiration limit for sessions. Should be
f7c390b8 93 // greater or equal to SESSION_COOKIE_LIFETIME
898a9cdb 94
5f2cd401 95 define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
eed55fd3
AD
96 // Stop updating feeds of user who was never logged in
97 // in specified amount of days. 0 disables.
98
b72c3ef8
AD
99 define('CHECK_FOR_NEW_VERSION', true);
100 // Check for new versions of tt-rss when entering preferences.
101
3a7a4bbc 102 define('USE_CURL_FOR_ICONS', false);
c798704b
AD
103 // Fetch favicons using CURL, useful if your PHP has disabled remote fopen()
104
1ddba275
AD
105 define('DIGEST_ENABLE', true);
106 // Global option to enable daily digests
107
a8931123 108 define('DIGEST_HOSTNAME', 'your.domain.dom');
9a61ce6d
AD
109 // Hostname for email digest signature
110
9cd7c995
AD
111 define('DIGEST_EMAIL_LIMIT', 10);
112 // The maximum amount of emails sent in one digest batch
113
99018440
AD
114 define('DAEMON_SENDS_DIGESTS', true);
115 // If update daemon and update_feeds should send digests
116 // Disable if you prefer querying special URL (see wiki)
117
cc17c205
AD
118 define('ENABLE_TRANSLATIONS', false);
119 // Enable experimental support for interface translations
120 // based on PHP-Gettext. This is of no much use right now.
121
bddc9788
AD
122 define('MYSQL_CHARSET', '');
123 // Connection charset for MySQL. Only enable if having charset-related
124 // errors with MySQL (mangled characters, errors when updating feeds, etc).
125
9fdf7824 126 define('ENABLE_SIMPLEPIE', false);
87b44f5c
AD
127 // Enables SimplePie RSS parsing library (experimental). When this option
128 // is disabled, Tiny Tiny RSS defaults to Magpie library.
9fdf7824 129
87b44f5c
AD
130 // SimplePie is somewhat faster, more robust and less clunky as Magpie.
131 // While it doesn't internally support HTTP Digest authentication
132 // (required for Livejournal protected feeds and such) and SSL, it can
133 // support it when using CURL.
134
135 // To summarize, if your PHP has CURL extension or you aren't subscribed
136 // to any feeds using HTTP Digest authentication and Magpie XML parsing
137 // errors are bothering you too much, you can try enabling SimplePie.
9fdf7824 138
c7d57b66
AD
139 define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache');
140 // Cache directory for RSS feeds when using SimplePie
141
dab52d7b 142 define('SIMPLEPIE_CACHE_IMAGES', false);
bc0f0785
AD
143 // Allow caching feed images when using SimplePie, to bypass hotlink
144 // prevention and such at expense of local disk space and bandwidth.
145 // Note that you (or your users) also have to enable image caching
146 // in feed editor.
147
14073c0a
AD
148 define('COUNTERS_MAX_AGE', 365);
149 // Hard limit for unread counters calculation. Try tweaking this
150 // parameter to speed up tt-rss when having a huge number of articles
151 // in the database (better yet, enable purging!)
152
a8931123
AD
153 define('DIGEST_FROM_NAME', 'Tiny Tiny RSS');
154 define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom');
155 // Name and address for sending email digests from.
156
157 define('DIGEST_SMTP_HOST', '');
158 // SMTP Host to send digests. When blank tt-rss uses
159 // PHP's default mail() function.
160
161 define('DIGEST_SMTP_LOGIN', '');
162 define('DIGEST_SMTP_PASSWORD', '');
163 // These two options enable SMTP authentication when sending
164 // digests. Require DIGEST_SMTP_HOST.
165
dff94f63 166 define('CONFIG_VERSION', 10);
f2c43604 167 // Expected config version. Please update this option in config.php
fef8a1e4
AD
168 // if necessary (after migrating all new options from this file).
169
72932a75 170 // vim:ft=php
7d4c898a 171?>