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