]> git.wh0rd.org - tt-rss.git/blobdiff - config.php-dist
UNDO: new option: COUNTERS_MAX_AGE
[tt-rss.git] / config.php-dist
index b2dc38fe7f781a7df187455655b49660739a1abb..3f48c5420d2d8cc6d3ddce373ec610ae8c78cecb 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
        // Your RDBMS must be configured to accept connections
        // via TCP/IP and authentified by password.
 
@@ -9,14 +9,18 @@
        define('DB_PASS', "XXXXXX");
        //define('DB_PORT', '5432'); // when neeeded, PG-only
 
-       define('RSS_BACKEND_TYPE', "magpie");
-       // magpie (stable) or simplepie (EXPERIMENTAL!)
+       define('MAGPIE_FETCH_TIME_OUT', 60);
+       // Magpie's default timeout is 5 seconds.  Some RSS feeds,
+       // such as from large Trac installs, can take significantly
+       // longer than 5 seconds to generate.  To prevent failed
+       // updates, increase this.
 
        define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
        // Local cache directory for RSS feeds
 
-       define('SIMPLEPIE_CACHE_DIR',   '/var/tmp/simplepie-ttrss-cache');
-       // Local cache directory for RSS feeds (simplepie)
+       define('MAGPIE_CACHE_AGE', 60*30); 
+       // How long to store cached RSS objects? In seconds.
+       // Defaults to 30 minutes
 
        define('WEB_DEMO_MODE', false);
        // Demo mode with reduced functionality.
@@ -27,9 +31,6 @@
        define('ICONS_URL', "icons");
        // Local and URL path to the directory, where feed favicons are stored.
 
-       define('USE_HTTP_AUTH', false);
-       // Use HTTP Basic authentication instead of login form. Has some problems.
-
        define('SINGLE_USER_MODE', true);
        // Operate in single user mode, disables all functionality related to
        // multiple users.
        define('GLOBAL_ENABLE_LABELS', false);
        // Labels are a security risk, so this option can globally disable them for all users.
 
-       define('ENABLE_LOGIN_SSL', false);
-       // Redirect to SSL url for login
-
        define('MAIL_RESET_PASS', true);
        // Send mail to user on password reset
        
-       define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>');
-       // Pretty obvious, I suppose.
+       define('MAIL_FROM', 'TT-RSS Daemon <noreply@some.ttrss.host.dom>');
+       // Pretty obvious, I suppose. Used for email digests & password notifications.
 
        define('ENABLE_FEED_BROWSER', true);
        // Enable or disable local feed browser
        // Bind session to client IP address (recommended)
 
        define('SESSION_COOKIE_LIFETIME', 0);
-       // Default lifetime of a session cookie. In seconds, 
-       // 0 means delete on browser close
-
-       define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
-       // Session cookie lifetime if "remember me" is checked on login.
+       // Default lifetime of a session (e.g. login) cookie. In seconds, 
+       // 0 means cookie will be deleted when browser closes.
 
        define('SESSION_EXPIRE_TIME', 86400);
        // Hard expiration limit for sessions. Should be
-       // >= SESSION_COOKIE_LIFETIME_REMEMBER
+       // greater or equal to SESSION_COOKIE_LIFETIME
 
-       define('DAEMON_UPDATE_LOGIN_LIMIT', 30);
+       define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
        // Stop updating feeds of user who was never logged in
        // in specified amount of days. 0 disables.
 
-       define('CONFIG_VERSION', 3);
+       define('CHECK_FOR_NEW_VERSION', true);
+       // Check for new versions of tt-rss when entering preferences.
+
+       define('USE_CURL_FOR_ICONS', false);
+       // Fetch favicons using CURL, useful if your PHP has disabled remote fopen()
+
+       define('DIGEST_ENABLE', true);
+       // Global option to enable daily digests
+
+       define('DIGEST_HOSTNAME', 'some.ttrss.host.dom');
+       // Hostname for email digest signature
+
+       define('DIGEST_EMAIL_LIMIT', 10);
+       // The maximum amount of emails sent in one digest batch
+
+       define('DAEMON_SENDS_DIGESTS', true);
+       // If update daemon and update_feeds should send digests
+       // Disable if you prefer querying special URL (see wiki)
+
+       define('ENABLE_TRANSLATIONS', false);
+       // Enable experimental support for interface translations
+       // based on PHP-Gettext. This is of no much use right now.
+
+       define('MYSQL_CHARSET', '');
+       // Connection charset for MySQL. Only enable if having charset-related
+       // errors with MySQL (mangled characters, errors when updating feeds, etc).
+
+       define('ENABLE_SIMPLEPIE', false);
+       // Enables SimplePie RSS parsing library (experimental). When this option 
+       // is disabled, Tiny Tiny RSS defaults to Magpie library. 
+
+       // SimplePie is somewhat faster, more robust and less clunky as Magpie. 
+       // While it doesn't internally support HTTP Digest authentication 
+       // (required for Livejournal protected feeds and such) and SSL, it can
+       // support it when using CURL.
+
+       // To summarize, if your PHP has CURL extension or you aren't subscribed
+       // to any feeds using HTTP Digest authentication and Magpie XML parsing 
+       // errors are bothering you too much, you can try enabling SimplePie.
+
+       define('CONFIG_VERSION', 9);
        // Expected config version. Please update this option in config.php
        // if necessary (after migrating all new options from this file).