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