]> git.wh0rd.org - tt-rss.git/blame - config.php-dist
Merge pull request #401 from trammel/master
[tt-rss.git] / config.php-dist
CommitLineData
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");
bbffc43e 11 define('DB_PORT', ''); // usually 5432 for PostgreSQL, 3306 for MySQL
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
39de6940 21 define('SELF_URL_PATH', 'http://example.org/tt-rss/');
edfab7bd 22 // Full URL of your tt-rss installation. This should be set to the
39de6940 23 // location of tt-rss directory, e.g. http://example.org/tt-rss/
edfab7bd
AD
24 // You need to set this option correctly otherwise several features
25 // including PUSH, bookmarklets and browser integration will not work properly.
ed102aa0 26
044cff2d 27 define('FEED_CRYPT_KEY', '');
524d03a0 28 // Key used for encryption of passwords for password-protected feeds
5d28014e 29 // in the database. A string of 24 random characters. If left blank, encryption
044cff2d
AD
30 // is not used. Requires mcrypt functions.
31 // Warning: changing this key will make your stored feed passwords impossible
32 // to decrypt.
33
09e8bdfd 34 define('SINGLE_USER_MODE', false);
61e420e9 35 // Operate in single user mode, disables all functionality related to
a905d89e
AD
36 // multiple users and authentication. Enabling this assumes you have
37 // your tt-rss directory protected by other means (e.g. http auth).
09e8bdfd 38
6b1a4ecd
AD
39 define('SIMPLE_UPDATE_MODE', false);
40 // Enables fallback update mode where tt-rss tries to update feeds in
6eb77a31
AD
41 // background while tt-rss is open in your browser.
42 // If you don't have a lot of feeds and don't want to or can't run
43 // background processes while not running tt-rss, this method is generally
44 // viable to keep your feeds up to date.
45 // Still, there are more robust (and recommended) updating methods
46 // available, you can read about them here: http://tt-rss.org/wiki/UpdatingFeeds
6b1a4ecd 47
09e8bdfd
AD
48 // *****************************
49 // *** Files and directories ***
50 // *****************************
51
52 define('PHP_EXECUTABLE', '/usr/bin/php');
9e2d513d
AD
53 // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss
54 // programs and update daemon. Do not try to use CGI binary here, it won't work.
55 // If you see HTTP headers being displayed while running tt-rss scripts,
56 // then most probably you are using the CGI binary. If you are unsure what to
57 // put in here, ask your hosting provider.
09e8bdfd
AD
58
59 define('LOCK_DIRECTORY', 'lock');
60 // Directory for lockfiles, must be writable to the user you run
61 // daemon process or cronjobs under.
62
61e420e9
AD
63 define('CACHE_DIR', 'cache');
64 // Local cache directory for RSS feed content.
baef3dfe 65
81745ce7
AD
66 define('ICONS_DIR', "feed-icons");
67 define('ICONS_URL', "feed-icons");
56a2fd35 68 // Local and URL path to the directory, where feed favicons are stored.
15ea0691
AD
69 // Unless you really know what you're doing, please keep those relative
70 // to tt-rss main directory.
c8437f35 71
0d421af8
AD
72 // **********************
73 // *** Authentication ***
74 // **********************
75
0f28f81f 76 // Please see PLUGINS below to configure various authentication modules.
0d421af8
AD
77
78 define('AUTH_AUTO_CREATE', true);
79 // Allow authentication modules to auto-create users in tt-rss internal
80 // database when authenticated successfully.
81
82 define('AUTH_AUTO_LOGIN', true);
83 // Automatically login user on remote or other kind of externally supplied
84 // authentication, otherwise redirect to login form as normal.
85 // If set to true, users won't be able to set application language
86 // and settings profile.
87
09e8bdfd
AD
88 // *********************
89 // *** Feed settings ***
90 // *********************
8fd92701 91
09e8bdfd
AD
92 define('FORCE_ARTICLE_PURGE', 0);
93 // When this option is not 0, users ability to control feed purging
94 // intervals is disabled and all articles (which are not starred)
95 // older than this amount of days are purged.
14073c0a 96
09e8bdfd 97 // *** PubSubHubbub settings ***
1fb2d0d8 98
09e8bdfd
AD
99 define('PUBSUBHUBBUB_HUB', '');
100 // URL to a PubSubHubbub-compatible hub server. If defined, "Published
101 // articles" generated feed would automatically become PUSH-enabled.
a8931123 102
d89c6dd8 103 define('PUBSUBHUBBUB_ENABLED', false);
09e8bdfd
AD
104 // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
105 // won't try to subscribe to PUSH feed updates.
a8931123 106
af2c15f3
AD
107 // ****************************
108 // *** Sphinx search plugin ***
109 // ****************************
09e8bdfd 110
52803a0b
AD
111 define('SPHINX_SERVER', 'localhost:9312');
112 // Hostname:port combination for the Sphinx server.
113
6f49cedf 114 define('SPHINX_INDEX', 'ttrss, delta');
09e8bdfd
AD
115 // Index name in Sphinx configuration. You can specify multiple indexes
116 // as a comma-separated string.
6f49cedf 117 // Example configuration files are available on tt-rss wiki.
09e8bdfd 118
09e8bdfd
AD
119 // ***********************************
120 // *** Self-registrations by users ***
121 // ***********************************
64eb624c 122
4f7956b3 123 define('ENABLE_REGISTRATION', false);
07420088 124 // Allow users to register themselves. Please be aware that allowing
4f7956b3
AD
125 // random people to access your tt-rss installation is a security risk
126 // and potentially might lead to data loss or server exploit. Disabled
127 // by default.
128
129 define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
130 // Email address to send new user notifications to.
131
132 define('REG_MAX_USERS', 10);
133 // Maximum amount of users which will be allowed to register on this
134 // system. 0 - no limit.
135
09e8bdfd
AD
136 // **********************************
137 // *** Cookies and login sessions ***
138 // **********************************
139
82d77deb 140 define('SESSION_COOKIE_LIFETIME', 86400);
09e8bdfd
AD
141 // Default lifetime of a session (e.g. login) cookie. In seconds,
142 // 0 means cookie will be deleted when browser closes.
3907ef71 143
09e8bdfd
AD
144 define('SESSION_CHECK_ADDRESS', 1);
145 // Check client IP address when validating session:
146 // 0 - disable checking
147 // 1 - check first 3 octets of an address (recommended)
148 // 2 - check first 2 octets of an address
149 // 3 - check entire address
e4f7f8df 150
09e8bdfd
AD
151 // *********************************
152 // *** Email and digest settings ***
153 // *********************************
e4f7f8df 154
09e8bdfd
AD
155 define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
156 define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
157 // Name, address and subject for sending outgoing mail. This applies
158 // to password reset notifications, digest emails and any other mail.
159
160 define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
161 // Subject line for email digests
162
b9863a15
AD
163 define('SMTP_SERVER', '');
164 // Hostname:port combination to send outgoing mail (i.e. localhost:25).
165 // Blank - use system MTA.
1b2afd2b 166
09e8bdfd
AD
167 define('SMTP_LOGIN', '');
168 define('SMTP_PASSWORD', '');
169 // These two options enable SMTP authentication when sending
90df27a4 170 // outgoing mail. Only used with SMTP_SERVER.
09e8bdfd 171
6dd01fce 172 define('SMTP_SECURE', '');
bebc15cd
AD
173 // Used to select a secure SMTP connection. Allowed values: ssl, tls,
174 // or empty.
6dd01fce 175
09e8bdfd
AD
176 // ***************************************
177 // *** Other settings (less important) ***
178 // ***************************************
65eebd13 179
09e8bdfd
AD
180 define('CHECK_FOR_NEW_VERSION', true);
181 // Check for new versions of tt-rss automatically.
182
307e24ca 183 define('DETECT_ARTICLE_LANGUAGE', false);
5ddd2705
AD
184 // Detect article language when updating feeds, presently this is only
185 // used for hyphenation. This may increase amount of CPU time used by
186 // update processes, disable if necessary (i.e. you are being billed
187 // for CPU time).
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.
8d34aa5b
AD
192 // Enabling this can break tt-rss in several httpd/php configurations,
193 // if you experience weird errors and tt-rss failing to start, blank pages
194 // after login, or content encoding errors, disable it.
e2bcd11b 195
e186015e 196 define('PLUGINS', 'auth_internal, note, updater');
0f28f81f
AD
197 // Comma-separated list of plugins to load automatically for all users.
198 // System plugins have to be specified here. Please enable at least one
199 // authentication plugin here (auth_*).
20b86c79
AD
200 // Users may enable other user plugins from Preferences/Plugins but may not
201 // disable plugins specified in this list.
3921f508
AD
202 // Disabling auth_internal in this list would automatically disable
203 // reset password link on the login form.
b367c951
AD
204
205 define('LOG_DESTINATION', 'sql');
206 // Log destination to use. Possible values: sql (uses internal logging
207 // you can read in Preferences -> System), syslog - logs to system log.
208 // Setting this to blank uses PHP logging (usually to http server
209 // error.log).
0f28f81f 210
6e658547 211 define('CONFIG_VERSION', 26);
f2c43604 212 // Expected config version. Please update this option in config.php
fef8a1e4
AD
213 // if necessary (after migrating all new options from this file).
214
72932a75 215 // vim:ft=php