]>
Commit | Line | Data |
---|---|---|
20862e58 | 1 | <?php |
5ddac168 | 2 | // Database server configuration |
cce28758 AD |
3 | define('DB_TYPE', "pgsql"); // or mysql |
4 | define('DB_HOST', "localhost"); | |
5 | define('DB_USER', "fox"); | |
6 | define('DB_NAME', "fox"); | |
7 | define('DB_PASS', "XXXXXX"); | |
befc807f | 8 | //define('DB_PORT', '5432'); // when neeeded, PG-only |
648472a7 | 9 | |
ed102aa0 AD |
10 | define('SELF_URL_PATH', 'http://localhost/tt-rss'); |
11 | // Full URL of your tt-rss installation. You need to set this option | |
12 | // correctly for tt-rss to function properly. | |
13 | ||
61e420e9 AD |
14 | define('SINGLE_USER_MODE', true); |
15 | // Operate in single user mode, disables all functionality related to | |
16 | // multiple users. | |
17 | ||
18 | define('CACHE_DIR', 'cache'); | |
19 | // Local cache directory for RSS feed content. | |
baef3dfe | 20 | |
61e420e9 AD |
21 | define('SIMPLEPIE_CACHE_IMAGES', false); |
22 | // Allow caching feed images when using SimplePie, to bypass hotlink | |
23 | // prevention and such at expense of local disk space and bandwidth. | |
24 | // Note that you (or your users) also have to enable image caching | |
25 | // in feed editor. | |
7c5a308d | 26 | |
cce28758 AD |
27 | define('ICONS_DIR', "icons"); |
28 | define('ICONS_URL', "icons"); | |
56a2fd35 | 29 | // Local and URL path to the directory, where feed favicons are stored. |
15ea0691 AD |
30 | // Unless you really know what you're doing, please keep those relative |
31 | // to tt-rss main directory. | |
535d216a AD |
32 | // Please note that Apache may reserve /icons/ URL to itself so you might |
33 | // need to change this and rename icons/ directory if you install tt-rss | |
34 | // into website root. | |
c8437f35 | 35 | |
7d7cbaf5 AD |
36 | define('TMP_DIRECTORY', '/tmp'); |
37 | // Directory for temporary files | |
f5de0d8d | 38 | |
78ea1de0 AD |
39 | define('DAEMON_SLEEP_INTERVAL', 120); |
40 | // Interval between update daemon update runs | |
41 | ||
03f321db | 42 | define('DATABASE_BACKED_SESSIONS', false); |
2ab29ac6 | 43 | // Store session information in a database, recommended for multiuser |
5854b016 AD |
44 | // configurations. Doesn't seem to work for everyone, so enable with caution. |
45 | // tt-rss uses default PHP session storing mechanism if disabled. | |
8fd92701 | 46 | |
0f41fce8 AD |
47 | define('SESSION_CHECK_ADDRESS', 1); |
48 | // Check client IP address when validating session: | |
49 | // 0 - disable checking | |
50 | // 1 - check first 3 octets of an address (recommended) | |
51 | // 2 - check first 2 octets of an address | |
52 | // 3 - check entire address | |
09018e95 | 53 | |
377a3e8b | 54 | define('SESSION_COOKIE_LIFETIME', 0); |
f7c390b8 AD |
55 | // Default lifetime of a session (e.g. login) cookie. In seconds, |
56 | // 0 means cookie will be deleted when browser closes. | |
898a9cdb AD |
57 | |
58 | define('SESSION_EXPIRE_TIME', 86400); | |
59 | // Hard expiration limit for sessions. Should be | |
f7c390b8 | 60 | // greater or equal to SESSION_COOKIE_LIFETIME |
898a9cdb | 61 | |
5f2cd401 | 62 | define('DAEMON_UPDATE_LOGIN_LIMIT', 0); |
4bb6b8ea AD |
63 | // Stop updating feeds of user who haven't logged in specified |
64 | // amount of days. 0 disables. | |
eed55fd3 | 65 | |
b72c3ef8 | 66 | define('CHECK_FOR_NEW_VERSION', true); |
0ff6e252 | 67 | // Check for new versions of tt-rss automatically. |
b72c3ef8 | 68 | |
1ddba275 | 69 | define('DIGEST_ENABLE', true); |
31a53903 AD |
70 | // Global option to enable daily digests. Also toggles the ability of users |
71 | // to forward articles by email. | |
1ddba275 | 72 | |
9cd7c995 AD |
73 | define('DIGEST_EMAIL_LIMIT', 10); |
74 | // The maximum amount of emails sent in one digest batch | |
75 | ||
99018440 AD |
76 | define('DAEMON_SENDS_DIGESTS', true); |
77 | // If update daemon and update_feeds should send digests | |
78 | // Disable if you prefer querying special URL (see wiki) | |
79 | ||
8e54a21e | 80 | define('MYSQL_CHARSET', 'UTF8'); |
80dce75e AD |
81 | // Connection charset for MySQL. If you have a legacy database and/or experience |
82 | // garbage unicode characters with this option, try setting it to a blank string. | |
bddc9788 | 83 | |
91149aab | 84 | define('DEFAULT_UPDATE_METHOD', 0); |
78a5c296 AD |
85 | // Which feed parsing library to use as default: |
86 | // 0 - Magpie | |
87 | // 1 - SimplePie | |
9fdf7824 | 88 | |
14073c0a AD |
89 | define('COUNTERS_MAX_AGE', 365); |
90 | // Hard limit for unread counters calculation. Try tweaking this | |
91 | // parameter to speed up tt-rss when having a huge number of articles | |
92 | // in the database (better yet, enable purging!) | |
93 | ||
a8931123 AD |
94 | define('DIGEST_FROM_NAME', 'Tiny Tiny RSS'); |
95 | define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom'); | |
1fb2d0d8 AD |
96 | // Name, address and subject for sending outgoing mail. This applies |
97 | // to password reset notifications, digest emails and any other mail. | |
98 | ||
163a295e | 99 | define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours'); |
1fb2d0d8 | 100 | // Subject line for email digests |
a8931123 AD |
101 | |
102 | define('DIGEST_SMTP_HOST', ''); | |
1fb2d0d8 | 103 | // SMTP Host to send outgoing mail. Blank - use system MTA. |
a8931123 AD |
104 | |
105 | define('DIGEST_SMTP_LOGIN', ''); | |
106 | define('DIGEST_SMTP_PASSWORD', ''); | |
107 | // These two options enable SMTP authentication when sending | |
1fb2d0d8 | 108 | // outgoing mail. Require DIGEST_SMTP_HOST. |
a8931123 | 109 | |
ae4ecd5d | 110 | define('DAEMON_FEED_LIMIT', 100); |
d2bf48f9 | 111 | // Limits the amount of feeds daemon (or a cronjob) updates on one run |
ae4ecd5d | 112 | |
66917e70 | 113 | define('ALLOW_REMOTE_USER_AUTH', false); |
3d72afa1 AD |
114 | // Set to 'true' if you trust your web server's REMOTE_USER |
115 | // environment variable that the user is logged in. This option can be | |
116 | // used to integrate tt-rss with Apache's external authentication modules. | |
66917e70 | 117 | |
12df6592 | 118 | define('AUTO_LOGIN', false); |
bf9fc060 AD |
119 | // Set this to true if you use ALLOW_REMOTE_USER_AUTH or client SSL |
120 | // certificate authentication and you want to skip the login form. | |
121 | // If set to true, users won't be able to set application language | |
122 | // and settings profile. | |
123 | // Otherwise users will be redirected to login form with their login | |
124 | // information pre-filled. | |
12df6592 | 125 | |
42315f8d AD |
126 | define('AUTO_CREATE_USER', false); |
127 | // If users are authenticated by your web server, set this to true if | |
128 | // You want new users to be automaticaly created in tt-rss database | |
129 | // on first login | |
130 | ||
2aae0cce | 131 | define('LOCK_DIRECTORY', 'lock'); |
cfa43e02 AD |
132 | // Directory for lockfiles, must be writable to the user you run |
133 | // daemon process or cronjobs under. | |
134 | ||
04fedbf5 AD |
135 | define('ENABLE_GZIP_OUTPUT', false); |
136 | // Selectively gzip output to improve wire performance. This requires | |
137 | // PHP Zlib extension on the server. | |
138 | ||
64eb624c AD |
139 | define('PHP_EXECUTABLE', '/usr/bin/php'); |
140 | // Path to PHP executable | |
141 | ||
4f7956b3 AD |
142 | define('ENABLE_REGISTRATION', false); |
143 | // Allow users to register themselves. Please be vary that allowing | |
144 | // random people to access your tt-rss installation is a security risk | |
145 | // and potentially might lead to data loss or server exploit. Disabled | |
146 | // by default. | |
147 | ||
148 | define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom'); | |
149 | // Email address to send new user notifications to. | |
150 | ||
151 | define('REG_MAX_USERS', 10); | |
152 | // Maximum amount of users which will be allowed to register on this | |
153 | // system. 0 - no limit. | |
154 | ||
63771c48 AD |
155 | define('FEEDBACK_URL', ''); |
156 | // Displays an URL for users to provide feedback or comments regarding | |
157 | // this instance of tt-rss. Can lead to a forum, contact email, etc. | |
158 | ||
3907ef71 AD |
159 | define('FORCE_ARTICLE_PURGE', 0); |
160 | // When this option is not 0, users ability to control feed purging | |
161 | // intervals is disabled and all articles (which are not starred) | |
162 | // older than this amount of days are purged. | |
163 | ||
a0ce6eb7 | 164 | define('SPHINX_ENABLED', false); |
e4f7f8df AD |
165 | // Enable fulltext search using Sphinx (http://www.sphinxsearch.com) |
166 | // Please see http://tt-rss.org/wiki/SphinxSearch for more information. | |
167 | ||
168 | define('SPHINX_INDEX', 'ttrss'); | |
61e420e9 AD |
169 | // Index name in Sphinx configuration. You can specify multiple indexes |
170 | // as a comma-separated string. | |
e4f7f8df | 171 | |
96d44601 AD |
172 | define('ENABLE_TWEET_BUTTON', false); |
173 | // Enable 'tweet this' button for articles | |
174 | ||
392b6d04 AD |
175 | define('CONSUMER_KEY', ''); |
176 | define('CONSUMER_SECRET', ''); | |
177 | // Your OAuth instance authentication information for Twitter, visit | |
178 | // http://twitter.com/oauth_clients to register your instance. | |
179 | ||
b0f379df AD |
180 | define('PUBSUBHUBBUB_HUB', ''); |
181 | // URL to a PubSubHubbub-compatible hub server. If defined, Published | |
182 | // articles generated feeds would automatically become PUSH-enabled. | |
183 | ||
e2bcd11b AD |
184 | define('ISCONFIGURED', false); |
185 | // Please set this to true if you have read everything above and | |
186 | // finished setting configuration options. | |
187 | ||
b0f379df | 188 | define('CONFIG_VERSION', 22); |
f2c43604 | 189 | // Expected config version. Please update this option in config.php |
fef8a1e4 AD |
190 | // if necessary (after migrating all new options from this file). |
191 | ||
72932a75 | 192 | // vim:ft=php |
7d4c898a | 193 | ?> |