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