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