]> git.wh0rd.org - tt-rss.git/blob - config.php-dist
old-skool oddUnreadSelected fix
[tt-rss.git] / config.php-dist
1 <?
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_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
13 // Local cache directory for RSS feeds
14
15 define('WEB_DEMO_MODE', false);
16 // Demo mode with reduced functionality.
17 // Warning: this option is obsolete. Don't rely on it being
18 // checked in all necessary places.
19
20 define('ICONS_DIR', "icons");
21 define('ICONS_URL', "icons");
22 // Local and URL path to the directory, where feed favicons are stored.
23
24 define('USE_HTTP_AUTH', false);
25 // Use HTTP Basic authentication instead of login form. Has some problems.
26
27 define('SINGLE_USER_MODE', true);
28 // Operate in single user mode, disables all functionality related to
29 // multiple users.
30
31 define('DAEMON_REFRESH_ONLY', false);
32 // updates to all feeds will only run when the backend script is
33 // invoked with a "daemon" option on the URI stem. This is useful when you
34 // are hosting multi-user system and want to control how often
35 // feeds are being updated.
36
37 // An example wget command line below will invoke an update every 30
38 // minutes, with output being sent to /dev/null and the timeout set to
39 // 10 minutes so that wget does not time out. Substitute your site name
40 // and tt-rss path as necessary.
41 //
42 // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://www.your-site.xxx/tt-rss/backend.php?op=globalUpdateFeeds&daemon=1"
43 //
44
45 // The alternative approach is to run update_feeds.php from your crontab
46 // with command line PHP interpreter. Don't forget to chdir() into TT-RSS
47 // directory or it won't be able to find includes. E.g.
48 //
49 // */30 * * * * cd $TTRSS_DIRECTORY && ./update_feeds.php >/dev/null 2>&1
50
51 // Another alternative approach is to run update_daemon.php in the background
52 // on the server, which allows user-scheduled updates and continous
53 // feed updating in the background. This is the recommended way at the moment.
54
55 define('SMART_RPC_COUNTERS', false);
56 // If enabled, stores feed counter information on the server side and sends
57 // only diffs to the client. In the nutshell, it saves your bandwidth and
58 // makes UI more responsive, but eats server memory.
59 // This option can introduce a lot of weird interface glitches in
60 // some use-cases (if you have more than one tt-rss window open, for example)
61 // so it is disabled by default.
62
63 define('GLOBAL_ENABLE_LABELS', false);
64 // Labels are a security risk, so this option can globally disable them for all users.
65
66 define('ENABLE_LOGIN_SSL', false);
67 // Redirect to SSL url for login
68
69 define('MAIL_RESET_PASS', true);
70 // Send mail to user on password reset
71
72 define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>');
73 // Pretty obvious, I suppose.
74
75 define('ENABLE_FEED_BROWSER', true);
76 // Enable or disable local feed browser
77
78 define('TMP_DIRECTORY', '/tmp');
79 // Directory for temporary files
80
81 define('FEEDS_FRAME_REFRESH', 600);
82 // Auto refresh interval for feeds frame (in seconds)
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.
92
93 define('ENABLE_UPDATE_DAEMON', false);
94 // This enables different mechanism for user-triggered updates designed
95 // for update daemon running in background on the server.
96 // This option suggests FEEDS_FRAME_REFRESH set to a small value
97 // (like 60 seconds, depending on number of users and server/bandwidth load).
98
99 define('DAEMON_SLEEP_INTERVAL', 120);
100 // Interval between update daemon update runs
101
102 define('DATABASE_BACKED_SESSIONS', false);
103 // Store session information in a database, recommended for multiuser
104 // configurations. Doesn't seem to work for everyone, so enable with caution.
105 // tt-rss uses default PHP session storing mechanism if disabled.
106
107 define('SESSION_CHECK_ADDRESS', true);
108 // Bind session to client IP address (recommended)
109
110 define('SESSION_COOKIE_LIFETIME', 0);
111 // Default lifetime of a session cookie. In seconds,
112 // 0 means delete on browser close
113
114 define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
115 // Session cookie lifetime if "remember me" is checked on login.
116
117 define('SESSION_EXPIRE_TIME', 86400);
118 // Hard expiration limit for sessions. Should be
119 // >= SESSION_COOKIE_LIFETIME_REMEMBER
120
121 define('DAEMON_UPDATE_LOGIN_LIMIT', 30);
122 // Stop updating feeds of user who was never logged in
123 // in specified amount of days. 0 disables.
124
125 define('CONFIG_VERSION', 2);
126 // Expected config version. Please updated this option in config.php
127 // if necessary (after migrating all new options from this file).
128
129 // vim:ft=php
130 ?>