]>
Commit | Line | Data |
---|---|---|
20862e58 | 1 | <?php |
09e8bdfd AD |
2 | // ******************************************* |
3 | // *** Database configuration (important!) *** | |
4 | // ******************************************* | |
5 | ||
cce28758 AD |
6 | define('DB_TYPE', "pgsql"); // or mysql |
7 | define('DB_HOST', "localhost"); | |
8 | define('DB_USER', "fox"); | |
9 | define('DB_NAME', "fox"); | |
10 | define('DB_PASS', "XXXXXX"); | |
befc807f | 11 | //define('DB_PORT', '5432'); // when neeeded, PG-only |
648472a7 | 12 | |
09e8bdfd AD |
13 | define('MYSQL_CHARSET', 'UTF8'); |
14 | // Connection charset for MySQL. If you have a legacy database and/or experience | |
15 | // garbage unicode characters with this option, try setting it to a blank string. | |
16 | ||
17 | // *********************************** | |
18 | // *** Basic settings (important!) *** | |
19 | // *********************************** | |
20 | ||
edfab7bd AD |
21 | define('SELF_URL_PATH', 'http://yourserver/tt-rss/'); |
22 | // Full URL of your tt-rss installation. This should be set to the | |
23 | // location of tt-rss directory, e.g. http://yourserver/tt-rss/ | |
24 | // You need to set this option correctly otherwise several features | |
25 | // including PUSH, bookmarklets and browser integration will not work properly. | |
ed102aa0 | 26 | |
09e8bdfd | 27 | define('SINGLE_USER_MODE', false); |
61e420e9 AD |
28 | // Operate in single user mode, disables all functionality related to |
29 | // multiple users. | |
09e8bdfd AD |
30 | |
31 | // ***************************** | |
32 | // *** Files and directories *** | |
33 | // ***************************** | |
34 | ||
35 | define('PHP_EXECUTABLE', '/usr/bin/php'); | |
36 | // Path to PHP executable, used for various command-line tt-rss programs | |
37 | ||
38 | define('LOCK_DIRECTORY', 'lock'); | |
39 | // Directory for lockfiles, must be writable to the user you run | |
40 | // daemon process or cronjobs under. | |
41 | ||
61e420e9 AD |
42 | define('CACHE_DIR', 'cache'); |
43 | // Local cache directory for RSS feed content. | |
baef3dfe | 44 | |
09e8bdfd AD |
45 | define('TMP_DIRECTORY', '/tmp'); |
46 | // Directory for temporary files | |
7c5a308d | 47 | |
81745ce7 AD |
48 | define('ICONS_DIR', "feed-icons"); |
49 | define('ICONS_URL', "feed-icons"); | |
56a2fd35 | 50 | // Local and URL path to the directory, where feed favicons are stored. |
15ea0691 AD |
51 | // Unless you really know what you're doing, please keep those relative |
52 | // to tt-rss main directory. | |
c8437f35 | 53 | |
09e8bdfd AD |
54 | // ********************* |
55 | // *** Feed settings *** | |
56 | // ********************* | |
8fd92701 | 57 | |
91149aab | 58 | define('DEFAULT_UPDATE_METHOD', 0); |
78a5c296 AD |
59 | // Which feed parsing library to use as default: |
60 | // 0 - Magpie | |
61 | // 1 - SimplePie | |
9fdf7824 | 62 | |
09e8bdfd AD |
63 | define('FORCE_ARTICLE_PURGE', 0); |
64 | // When this option is not 0, users ability to control feed purging | |
65 | // intervals is disabled and all articles (which are not starred) | |
66 | // older than this amount of days are purged. | |
14073c0a | 67 | |
09e8bdfd | 68 | // *** PubSubHubbub settings *** |
1fb2d0d8 | 69 | |
09e8bdfd AD |
70 | define('PUBSUBHUBBUB_HUB', ''); |
71 | // URL to a PubSubHubbub-compatible hub server. If defined, "Published | |
72 | // articles" generated feed would automatically become PUSH-enabled. | |
a8931123 | 73 | |
d89c6dd8 | 74 | define('PUBSUBHUBBUB_ENABLED', false); |
09e8bdfd AD |
75 | // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss |
76 | // won't try to subscribe to PUSH feed updates. | |
a8931123 | 77 | |
09e8bdfd AD |
78 | // ********************* |
79 | // *** Sphinx search *** | |
80 | // ********************* | |
81 | ||
82 | define('SPHINX_ENABLED', false); | |
83 | // Enable fulltext search using Sphinx (http://www.sphinxsearch.com) | |
84 | // Please see http://tt-rss.org/wiki/SphinxSearch for more information. | |
a8931123 | 85 | |
09e8bdfd AD |
86 | define('SPHINX_INDEX', 'ttrss'); |
87 | // Index name in Sphinx configuration. You can specify multiple indexes | |
88 | // as a comma-separated string. | |
89 | ||
90 | // ********************** | |
91 | // *** Authentication *** | |
92 | // ********************** | |
ae4ecd5d | 93 | |
66917e70 | 94 | define('ALLOW_REMOTE_USER_AUTH', false); |
3d72afa1 AD |
95 | // Set to 'true' if you trust your web server's REMOTE_USER |
96 | // environment variable that the user is logged in. This option can be | |
97 | // used to integrate tt-rss with Apache's external authentication modules. | |
66917e70 | 98 | |
12df6592 | 99 | define('AUTO_LOGIN', false); |
bf9fc060 AD |
100 | // Set this to true if you use ALLOW_REMOTE_USER_AUTH or client SSL |
101 | // certificate authentication and you want to skip the login form. | |
102 | // If set to true, users won't be able to set application language | |
103 | // and settings profile. | |
104 | // Otherwise users will be redirected to login form with their login | |
105 | // information pre-filled. | |
12df6592 | 106 | |
42315f8d AD |
107 | define('AUTO_CREATE_USER', false); |
108 | // If users are authenticated by your web server, set this to true if | |
109 | // You want new users to be automaticaly created in tt-rss database | |
110 | // on first login | |
111 | ||
09e8bdfd AD |
112 | // *********************************** |
113 | // *** Self-registrations by users *** | |
114 | // *********************************** | |
64eb624c | 115 | |
4f7956b3 AD |
116 | define('ENABLE_REGISTRATION', false); |
117 | // Allow users to register themselves. Please be vary that allowing | |
118 | // random people to access your tt-rss installation is a security risk | |
119 | // and potentially might lead to data loss or server exploit. Disabled | |
120 | // by default. | |
121 | ||
122 | define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom'); | |
123 | // Email address to send new user notifications to. | |
124 | ||
125 | define('REG_MAX_USERS', 10); | |
126 | // Maximum amount of users which will be allowed to register on this | |
127 | // system. 0 - no limit. | |
128 | ||
09e8bdfd AD |
129 | // ********************************** |
130 | // *** Cookies and login sessions *** | |
131 | // ********************************** | |
132 | ||
133 | define('SESSION_COOKIE_LIFETIME', 0); | |
134 | // Default lifetime of a session (e.g. login) cookie. In seconds, | |
135 | // 0 means cookie will be deleted when browser closes. | |
63771c48 | 136 | |
09e8bdfd AD |
137 | define('SESSION_EXPIRE_TIME', 86400); |
138 | // Hard expiration limit for sessions. Should be | |
139 | // greater or equal to SESSION_COOKIE_LIFETIME | |
3907ef71 | 140 | |
09e8bdfd AD |
141 | define('SESSION_CHECK_ADDRESS', 1); |
142 | // Check client IP address when validating session: | |
143 | // 0 - disable checking | |
144 | // 1 - check first 3 octets of an address (recommended) | |
145 | // 2 - check first 2 octets of an address | |
146 | // 3 - check entire address | |
e4f7f8df | 147 | |
09e8bdfd AD |
148 | // ********************************* |
149 | // *** Email and digest settings *** | |
150 | // ********************************* | |
e4f7f8df | 151 | |
09e8bdfd AD |
152 | define('SMTP_FROM_NAME', 'Tiny Tiny RSS'); |
153 | define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom'); | |
154 | // Name, address and subject for sending outgoing mail. This applies | |
155 | // to password reset notifications, digest emails and any other mail. | |
156 | ||
157 | define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours'); | |
158 | // Subject line for email digests | |
159 | ||
160 | define('SMTP_HOST', ''); | |
161 | // SMTP Host to send outgoing mail. Blank - use system MTA. | |
162 | ||
163 | define('SMTP_LOGIN', ''); | |
164 | define('SMTP_PASSWORD', ''); | |
165 | // These two options enable SMTP authentication when sending | |
166 | // outgoing mail. Only used with SMTP_HOST | |
167 | ||
168 | // ************************************ | |
169 | // *** Twitter integration settings *** | |
170 | // ************************************ | |
171 | ||
392b6d04 AD |
172 | define('CONSUMER_KEY', ''); |
173 | define('CONSUMER_SECRET', ''); | |
174 | // Your OAuth instance authentication information for Twitter, visit | |
175 | // http://twitter.com/oauth_clients to register your instance. | |
176 | ||
09e8bdfd AD |
177 | // *************************************** |
178 | // *** Other settings (less important) *** | |
179 | // *************************************** | |
65eebd13 | 180 | |
09e8bdfd AD |
181 | define('CHECK_FOR_NEW_VERSION', true); |
182 | // Check for new versions of tt-rss automatically. | |
183 | ||
184 | define('COUNTERS_MAX_AGE', 365); | |
185 | // Hard limit for unread counters calculation. Try tweaking this | |
186 | // parameter to speed up tt-rss when having a huge number of articles | |
187 | // in the database (better yet, enable purging!) | |
b0f379df | 188 | |
09e8bdfd AD |
189 | define('ENABLE_GZIP_OUTPUT', false); |
190 | // Selectively gzip output to improve wire performance. This requires | |
191 | // PHP Zlib extension on the server. | |
e2bcd11b | 192 | |
09e8bdfd AD |
193 | define('FEEDBACK_URL', ''); |
194 | // Displays an URL for users to provide feedback or comments regarding | |
195 | // this instance of tt-rss. Can lead to a forum, contact email, etc. | |
f9ac31d6 | 196 | |
55ad22fa | 197 | define('ARTICLE_BUTTON_PLUGINS', 'note,tweet,share,mail'); |
f9ac31d6 AD |
198 | // Comma-separated list of additional article action button plugins |
199 | // to enable, like tweet button, etc. | |
55ad22fa | 200 | // The following plugins are available: note, tweet, share, mail, readitlater |
f9ac31d6 | 201 | |
d4e35925 | 202 | define('CONFIG_VERSION', 25); |
f2c43604 | 203 | // Expected config version. Please update this option in config.php |
fef8a1e4 AD |
204 | // if necessary (after migrating all new options from this file). |
205 | ||
72932a75 | 206 | // vim:ft=php |
7d4c898a | 207 | ?> |