Skip to content
Newer
Older
100644 109 lines (83 sloc) 4.09 KB
8af5db8 added config.php
Andrew Dolgov authored Aug 21, 2005
1 <?
8b2cbc3 update config.php-dist
Andrew Dolgov authored Nov 19, 2005
2 // Your RDBMS must be configured to accept connections
f92db4f purging of old posts is actually configurable now, added comments for…
Andrew Dolgov authored Sep 2, 2005
3 // via TCP/IP and authentified by password.
648472a initial mysql schema, db abstraction layer
Andrew Dolgov authored Sep 7, 2005
4
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
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");
648472a initial mysql schema, db abstraction layer
Andrew Dolgov authored Sep 7, 2005
10
a1a8a2b functionality updates
Andrew Dolgov authored Aug 21, 2005
11 define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
f92db4f purging of old posts is actually configurable now, added comments for…
Andrew Dolgov authored Sep 2, 2005
12 // Local cache directory for RSS feeds
13
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
14 define('WEB_DEMO_MODE', false);
8b2cbc3 update config.php-dist
Andrew Dolgov authored Nov 19, 2005
15 // Demo mode with reduced functionality.
7a991ca option DISPLAY_FEEDLIST_ACTIONS, consolidate actions in one dropbox
Andrew Dolgov authored Nov 15, 2005
16
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
17 define('ICONS_DIR', "icons");
18 define('ICONS_URL', "icons");
56a2fd3 update config.php-dist
Andrew Dolgov authored Nov 29, 2005
19 // Local and URL path to the directory, where feed favicons are stored.
c8437f3 optional login form/http basic auth support
Andrew Dolgov authored Nov 18, 2005
20
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
21 define('USE_HTTP_AUTH', false);
8b2cbc3 update config.php-dist
Andrew Dolgov authored Nov 19, 2005
22 // Use HTTP Basic authentication instead of login form. Has some problems.
8af5db8 added config.php
Andrew Dolgov authored Aug 21, 2005
23
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
24 define('SINGLE_USER_MODE', true);
8b2cbc3 update config.php-dist
Andrew Dolgov authored Nov 19, 2005
25 // Operate in single user mode, disables all functionality related to
26 // multiple users.
30a49c9 DAEMON_REFRESH_ONLY makes a lot more sense as a global option
Andrew Dolgov authored Nov 23, 2005
27
cce2875 debug request variable sets error_reporting to E_ALL
Andrew Dolgov authored Nov 23, 2005
28 define('DAEMON_REFRESH_ONLY', false);
30a49c9 DAEMON_REFRESH_ONLY makes a lot more sense as a global option
Andrew Dolgov authored Nov 23, 2005
29 // updates to all feeds will only run when the backend script is
0d43617 update description of DAEMON_UPDATE_ONLY in config.php-dist
Andrew Dolgov authored Nov 23, 2005
30 // invoked with a "daemon" option on the URI stem. This is useful when you
31 // are hosting multi-user system and want to control how often
32 // feeds are being updated.
33
34 // An example wget command line below will invoke an update every 30
35 // minutes, with output being sent to /dev/null and the timeout set to
36 // 10 minutes so that wget does not time out. Substitute your site name
37 // and tt-rss path as necessary.
30a49c9 DAEMON_REFRESH_ONLY makes a lot more sense as a global option
Andrew Dolgov authored Nov 23, 2005
38 //
0d43617 update description of DAEMON_UPDATE_ONLY in config.php-dist
Andrew Dolgov authored Nov 23, 2005
39 // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://www.your-site.xxx/tt-rss/backend.php?op=globalUpdateFeeds&daemon=1"
30a49c9 DAEMON_REFRESH_ONLY makes a lot more sense as a global option
Andrew Dolgov authored Nov 23, 2005
40 //
41
1f2b01e update_feeds.php for CLI
Andrew Dolgov authored Dec 3, 2005
42 // The alternative approach is to run update_feeds.php from your crontab
a47a3f8 expand comment on update_feeds.php in config.php
Andrew Dolgov authored Dec 4, 2005
43 // with command line PHP interpreter. Don't forget to chdir() into TT-RSS
44 // directory or it won't be able to find includes. E.g.
45 //
46 // */30 * * * * cd $TTRSS_DIRECTORY && ./update_feeds.php >/dev/null 2>&1
b329516 ENABLE_UPDATE_SCHEDULER entry
Andrew Dolgov authored Feb 11, 2006
47
48 // Another alternative approach is to run update_daemon.php in the background
49 // on the server, which allows user-scheduled updates and continous
50 // feed updating in the background. This is the recommended way at the moment.
a47a3f8 expand comment on update_feeds.php in config.php
Andrew Dolgov authored Dec 4, 2005
51
c3d74dc SMART_RPC_COUNTERS is false by default
Andrew Dolgov authored Dec 13, 2005
52 define('SMART_RPC_COUNTERS', false);
bbc92e5 smart RPC I/O is now optional, add functionality to getLabelCounters()
Andrew Dolgov authored Nov 29, 2005
53 // If enabled, stores feed counter information on the server side and sends
54 // only diffs to the client. In the nutshell, it saves your bandwidth and
c3d74dc SMART_RPC_COUNTERS is false by default
Andrew Dolgov authored Dec 13, 2005
55 // makes UI more responsive, but eats server memory.
56 // This option can introduce a lot of weird interface glitches in
57 // some use-cases (if you have more than one tt-rss window open, for example)
58 // so it is disabled by default.
bbc92e5 smart RPC I/O is now optional, add functionality to getLabelCounters()
Andrew Dolgov authored Nov 29, 2005
59
65cd0f7 GLOBAL_ENABLE_LABELS: disable by default
Andrew Dolgov authored Dec 2, 2005
60 define('GLOBAL_ENABLE_LABELS', false);
cfaba6d option GLOBAL_ENABLE_LABELS restricts labels globally
Andrew Dolgov authored Dec 2, 2005
61 // Labels are a security risk, so this option can globally disable them for all users.
62
75836f3 option to redirect to https url for login, option ENABLE_LOGIN_SSL (f…
Andrew Dolgov authored Dec 9, 2005
63 define('ENABLE_LOGIN_SSL', false);
64 // Redirect to SSL url for login
65
72932a7 option MAIL_RESET_PASS (closes #11)
Andrew Dolgov authored Dec 20, 2005
66 define('MAIL_RESET_PASS', true);
67 // Send mail to user on password reset
68
69 define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>');
70 // Pretty obvious, I suppose.
e2f728b new global option: ENABLE_FEED_BROWSER
Andrew Dolgov authored Jan 12, 2006
71
72 define('ENABLE_FEED_BROWSER', true);
73 // Enable or disable local feed browser
7d7cbaf new option: TMP_DIRECTORY
Andrew Dolgov authored Feb 3, 2006
74
75 define('TMP_DIRECTORY', '/tmp');
76 // Directory for temporary files
f5de0d8 new option: FEEDS_FRAME_REFRESH (sort-of closes #12)
Andrew Dolgov authored Feb 3, 2006
77
78 define('FEEDS_FRAME_REFRESH', 600);
79 // Auto refresh interval for feeds frame (in seconds)
cbd8650 new option: MAX_UPDATE_TIME
Andrew Dolgov authored Feb 11, 2006
80
81 define('MAX_UPDATE_TIME', 0);
82 // Limit one update sequence run to this number of seconds.
83 // The valiue is not exact, because it is being checked between feed updates,
84 // which could use abritrary amount of time. Feeds which could not be updated
85 // in time, are being skipped.
86 // If this option is enabled (non-zero) feeds are updated in random order.
87 // It is also recommended to set FEEDS_FRAME_REFRESH to a lower value if using
88 // this option.
de69642 initial work on update daemon
Andrew Dolgov authored Feb 11, 2006
89
085a5a7 rename UPDATE_SCHEDULER to UPDATE_DAEMON, more update daemon work, up…
Andrew Dolgov authored Feb 12, 2006
90 define('ENABLE_UPDATE_DAEMON', false);
b329516 ENABLE_UPDATE_SCHEDULER entry
Andrew Dolgov authored Feb 11, 2006
91 // This enables different mechanism for user-triggered updates designed
92 // for update daemon running in background on the server.
93
085a5a7 rename UPDATE_SCHEDULER to UPDATE_DAEMON, more update daemon work, up…
Andrew Dolgov authored Feb 12, 2006
94 // This option suggests FEEDS_FRAME_REFRESH set to a small value
b2620fa update config.php-dist
Andrew Dolgov authored Feb 12, 2006
95 // (like 60 seconds, depending on number of users and server/bandwidth load).
a561fe7 add DISABLE_SESSIONS to config.php-dist
Andrew Dolgov authored Feb 12, 2006
96
97 define('DISABLE_SESSIONS', false);
98 // Never enable this option (kludge for daemon using tt-rss code)
99
78ea1de skip counters output when number of unread articles at backend equals…
Andrew Dolgov authored Feb 12, 2006
100 define('DAEMON_SLEEP_INTERVAL', 120);
101 // Interval between update daemon update runs
102
8fd9270 update schema, new option: DATABASE_BACKED_SESSIONS
Andrew Dolgov authored Mar 2, 2006
103 define('DATABASE_BACKED_SESSIONS', true);
104 // Store session information in a database (recommended)
105 // Uses default PHP session storing mechanism if disabled
106
72932a7 option MAIL_RESET_PASS (closes #11)
Andrew Dolgov authored Dec 20, 2005
107 // vim:ft=php
7d4c898 optional SINGLE_USER_MODE
Andrew Dolgov authored Nov 18, 2005
108 ?>
Something went wrong with that request. Please try again.