]>
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 AD |
25 | define('ICONS_DIR', "icons"); |
26 | define('ICONS_URL', "icons"); | |
56a2fd35 | 27 | // Local and URL path to the directory, where feed favicons are stored. |
15ea0691 AD |
28 | // Unless you really know what you're doing, please keep those relative |
29 | // to tt-rss main directory. | |
c8437f35 | 30 | |
cce28758 | 31 | define('SINGLE_USER_MODE', true); |
8b2cbc33 AD |
32 | // Operate in single user mode, disables all functionality related to |
33 | // multiple users. | |
a47a3f82 | 34 | |
7d7cbaf5 AD |
35 | define('TMP_DIRECTORY', '/tmp'); |
36 | // Directory for temporary files | |
f5de0d8d AD |
37 | |
38 | define('FEEDS_FRAME_REFRESH', 600); | |
39 | // Auto refresh interval for feeds frame (in seconds) | |
cbd8650d | 40 | |
085a5a74 | 41 | define('ENABLE_UPDATE_DAEMON', false); |
b3295162 AD |
42 | // This enables different mechanism for user-triggered updates designed |
43 | // for update daemon running in background on the server. | |
085a5a74 | 44 | // This option suggests FEEDS_FRAME_REFRESH set to a small value |
b2620faa | 45 | // (like 60 seconds, depending on number of users and server/bandwidth load). |
a561fe73 | 46 | |
78ea1de0 AD |
47 | define('DAEMON_SLEEP_INTERVAL', 120); |
48 | // Interval between update daemon update runs | |
49 | ||
03f321db | 50 | define('DATABASE_BACKED_SESSIONS', false); |
2ab29ac6 | 51 | // Store session information in a database, recommended for multiuser |
5854b016 AD |
52 | // configurations. Doesn't seem to work for everyone, so enable with caution. |
53 | // tt-rss uses default PHP session storing mechanism if disabled. | |
8fd92701 | 54 | |
09018e95 | 55 | define('SESSION_CHECK_ADDRESS', true); |
916f788a | 56 | // Bind session to client IP address (recommended) |
09018e95 | 57 | |
377a3e8b | 58 | define('SESSION_COOKIE_LIFETIME', 0); |
f7c390b8 AD |
59 | // Default lifetime of a session (e.g. login) cookie. In seconds, |
60 | // 0 means cookie will be deleted when browser closes. | |
898a9cdb AD |
61 | |
62 | define('SESSION_EXPIRE_TIME', 86400); | |
63 | // Hard expiration limit for sessions. Should be | |
f7c390b8 | 64 | // greater or equal to SESSION_COOKIE_LIFETIME |
898a9cdb | 65 | |
5f2cd401 | 66 | define('DAEMON_UPDATE_LOGIN_LIMIT', 0); |
4bb6b8ea AD |
67 | // Stop updating feeds of user who haven't logged in specified |
68 | // amount of days. 0 disables. | |
eed55fd3 | 69 | |
b72c3ef8 | 70 | define('CHECK_FOR_NEW_VERSION', true); |
0ff6e252 | 71 | // Check for new versions of tt-rss automatically. |
b72c3ef8 | 72 | |
3a7a4bbc | 73 | define('USE_CURL_FOR_ICONS', false); |
c798704b AD |
74 | // Fetch favicons using CURL, useful if your PHP has disabled remote fopen() |
75 | ||
1ddba275 AD |
76 | define('DIGEST_ENABLE', true); |
77 | // Global option to enable daily digests | |
78 | ||
9cd7c995 AD |
79 | define('DIGEST_EMAIL_LIMIT', 10); |
80 | // The maximum amount of emails sent in one digest batch | |
81 | ||
99018440 AD |
82 | define('DAEMON_SENDS_DIGESTS', true); |
83 | // If update daemon and update_feeds should send digests | |
84 | // Disable if you prefer querying special URL (see wiki) | |
85 | ||
0456176a AD |
86 | define('ENABLE_TRANSLATIONS', true); |
87 | // Enable support for interface translations | |
cc17c205 | 88 | |
bddc9788 AD |
89 | define('MYSQL_CHARSET', ''); |
90 | // Connection charset for MySQL. Only enable if having charset-related | |
91 | // errors with MySQL (mangled characters, errors when updating feeds, etc). | |
92 | ||
78a5c296 AD |
93 | define('DEFAULT_UPDATE_METHOD', 0); |
94 | // Which feed parsing library to use as default: | |
95 | // 0 - Magpie | |
96 | // 1 - SimplePie | |
9fdf7824 | 97 | |
c7d57b66 AD |
98 | define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache'); |
99 | // Cache directory for RSS feeds when using SimplePie | |
100 | ||
dab52d7b | 101 | define('SIMPLEPIE_CACHE_IMAGES', false); |
bc0f0785 AD |
102 | // Allow caching feed images when using SimplePie, to bypass hotlink |
103 | // prevention and such at expense of local disk space and bandwidth. | |
104 | // Note that you (or your users) also have to enable image caching | |
105 | // in feed editor. | |
106 | ||
14073c0a AD |
107 | define('COUNTERS_MAX_AGE', 365); |
108 | // Hard limit for unread counters calculation. Try tweaking this | |
109 | // parameter to speed up tt-rss when having a huge number of articles | |
110 | // in the database (better yet, enable purging!) | |
111 | ||
a8931123 AD |
112 | define('DIGEST_FROM_NAME', 'Tiny Tiny RSS'); |
113 | define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom'); | |
1fb2d0d8 AD |
114 | // Name, address and subject for sending outgoing mail. This applies |
115 | // to password reset notifications, digest emails and any other mail. | |
116 | ||
163a295e | 117 | define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours'); |
1fb2d0d8 | 118 | // Subject line for email digests |
a8931123 AD |
119 | |
120 | define('DIGEST_SMTP_HOST', ''); | |
1fb2d0d8 | 121 | // SMTP Host to send outgoing mail. Blank - use system MTA. |
a8931123 AD |
122 | |
123 | define('DIGEST_SMTP_LOGIN', ''); | |
124 | define('DIGEST_SMTP_PASSWORD', ''); | |
125 | // These two options enable SMTP authentication when sending | |
1fb2d0d8 | 126 | // outgoing mail. Require DIGEST_SMTP_HOST. |
a8931123 | 127 | |
ae4ecd5d | 128 | define('DAEMON_FEED_LIMIT', 100); |
d2bf48f9 | 129 | // Limits the amount of feeds daemon (or a cronjob) updates on one run |
ae4ecd5d | 130 | |
66917e70 AD |
131 | define('ALLOW_REMOTE_USER_AUTH', false); |
132 | // Set to 'true' if you trust your web server's REMOTE_USER | |
133 | // environment variable to validate that the user is logged in. This | |
134 | // option can be used to integrate tt-rss with Apache's external | |
135 | // authentication modules. | |
136 | ||
cfa43e02 AD |
137 | define('LOCK_DIRECTORY', '.'); |
138 | // Directory for lockfiles, must be writable to the user you run | |
139 | // daemon process or cronjobs under. | |
140 | ||
04fedbf5 AD |
141 | define('ENABLE_GZIP_OUTPUT', false); |
142 | // Selectively gzip output to improve wire performance. This requires | |
143 | // PHP Zlib extension on the server. | |
144 | ||
64eb624c AD |
145 | define('PHP_EXECUTABLE', '/usr/bin/php'); |
146 | // Path to PHP executable | |
147 | ||
4f7956b3 AD |
148 | define('ENABLE_REGISTRATION', false); |
149 | // Allow users to register themselves. Please be vary that allowing | |
150 | // random people to access your tt-rss installation is a security risk | |
151 | // and potentially might lead to data loss or server exploit. Disabled | |
152 | // by default. | |
153 | ||
154 | define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom'); | |
155 | // Email address to send new user notifications to. | |
156 | ||
157 | define('REG_MAX_USERS', 10); | |
158 | // Maximum amount of users which will be allowed to register on this | |
159 | // system. 0 - no limit. | |
160 | ||
63771c48 AD |
161 | define('FEEDBACK_URL', ''); |
162 | // Displays an URL for users to provide feedback or comments regarding | |
163 | // this instance of tt-rss. Can lead to a forum, contact email, etc. | |
164 | ||
3907ef71 AD |
165 | define('FORCE_ARTICLE_PURGE', 0); |
166 | // When this option is not 0, users ability to control feed purging | |
167 | // intervals is disabled and all articles (which are not starred) | |
168 | // older than this amount of days are purged. | |
169 | ||
78a5c296 | 170 | define('CONFIG_VERSION', 19); |
f2c43604 | 171 | // Expected config version. Please update this option in config.php |
fef8a1e4 AD |
172 | // if necessary (after migrating all new options from this file). |
173 | ||
72932a75 | 174 | // vim:ft=php |
7d4c898a | 175 | ?> |