]> git.wh0rd.org - tt-rss.git/blame - config.php-dist
updaterandomfeed: use max_execution_time parameter
[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");
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 30
6b1a4ecd
AD
31 define('SIMPLE_UPDATE_MODE', false);
32 // Enables fallback update mode where tt-rss tries to update feeds in
33 // background while tt-rss is open in your browser. Not recommended, please
34 // read http://tt-rss.org/wiki/UpdatingFeeds for more information.
35
09e8bdfd
AD
36 // *****************************
37 // *** Files and directories ***
38 // *****************************
39
40 define('PHP_EXECUTABLE', '/usr/bin/php');
41 // Path to PHP executable, used for various command-line tt-rss programs
42
43 define('LOCK_DIRECTORY', 'lock');
44 // Directory for lockfiles, must be writable to the user you run
45 // daemon process or cronjobs under.
46
61e420e9
AD
47 define('CACHE_DIR', 'cache');
48 // Local cache directory for RSS feed content.
baef3dfe 49
81745ce7
AD
50 define('ICONS_DIR', "feed-icons");
51 define('ICONS_URL', "feed-icons");
56a2fd35 52 // Local and URL path to the directory, where feed favicons are stored.
15ea0691
AD
53 // Unless you really know what you're doing, please keep those relative
54 // to tt-rss main directory.
c8437f35 55
0d421af8
AD
56 // **********************
57 // *** Authentication ***
58 // **********************
59
0f28f81f 60 // Please see PLUGINS below to configure various authentication modules.
0d421af8
AD
61
62 define('AUTH_AUTO_CREATE', true);
63 // Allow authentication modules to auto-create users in tt-rss internal
64 // database when authenticated successfully.
65
66 define('AUTH_AUTO_LOGIN', true);
67 // Automatically login user on remote or other kind of externally supplied
68 // authentication, otherwise redirect to login form as normal.
69 // If set to true, users won't be able to set application language
70 // and settings profile.
71
09e8bdfd
AD
72 // *********************
73 // *** Feed settings ***
74 // *********************
8fd92701 75
09e8bdfd
AD
76 define('FORCE_ARTICLE_PURGE', 0);
77 // When this option is not 0, users ability to control feed purging
78 // intervals is disabled and all articles (which are not starred)
79 // older than this amount of days are purged.
14073c0a 80
09e8bdfd 81 // *** PubSubHubbub settings ***
1fb2d0d8 82
09e8bdfd
AD
83 define('PUBSUBHUBBUB_HUB', '');
84 // URL to a PubSubHubbub-compatible hub server. If defined, "Published
85 // articles" generated feed would automatically become PUSH-enabled.
a8931123 86
d89c6dd8 87 define('PUBSUBHUBBUB_ENABLED', false);
09e8bdfd
AD
88 // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
89 // won't try to subscribe to PUSH feed updates.
a8931123 90
09e8bdfd
AD
91 // *********************
92 // *** Sphinx search ***
93 // *********************
94
95 define('SPHINX_ENABLED', false);
96 // Enable fulltext search using Sphinx (http://www.sphinxsearch.com)
97 // Please see http://tt-rss.org/wiki/SphinxSearch for more information.
a8931123 98
09e8bdfd
AD
99 define('SPHINX_INDEX', 'ttrss');
100 // Index name in Sphinx configuration. You can specify multiple indexes
101 // as a comma-separated string.
102
09e8bdfd
AD
103 // ***********************************
104 // *** Self-registrations by users ***
105 // ***********************************
64eb624c 106
4f7956b3
AD
107 define('ENABLE_REGISTRATION', false);
108 // Allow users to register themselves. Please be vary that allowing
109 // random people to access your tt-rss installation is a security risk
110 // and potentially might lead to data loss or server exploit. Disabled
111 // by default.
112
113 define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
114 // Email address to send new user notifications to.
115
116 define('REG_MAX_USERS', 10);
117 // Maximum amount of users which will be allowed to register on this
118 // system. 0 - no limit.
119
09e8bdfd
AD
120 // **********************************
121 // *** Cookies and login sessions ***
122 // **********************************
123
124 define('SESSION_COOKIE_LIFETIME', 0);
125 // Default lifetime of a session (e.g. login) cookie. In seconds,
126 // 0 means cookie will be deleted when browser closes.
63771c48 127
09e8bdfd
AD
128 define('SESSION_EXPIRE_TIME', 86400);
129 // Hard expiration limit for sessions. Should be
130 // greater or equal to SESSION_COOKIE_LIFETIME
3907ef71 131
09e8bdfd
AD
132 define('SESSION_CHECK_ADDRESS', 1);
133 // Check client IP address when validating session:
134 // 0 - disable checking
135 // 1 - check first 3 octets of an address (recommended)
136 // 2 - check first 2 octets of an address
137 // 3 - check entire address
e4f7f8df 138
09e8bdfd
AD
139 // *********************************
140 // *** Email and digest settings ***
141 // *********************************
e4f7f8df 142
09e8bdfd
AD
143 define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
144 define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
145 // Name, address and subject for sending outgoing mail. This applies
146 // to password reset notifications, digest emails and any other mail.
147
148 define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
149 // Subject line for email digests
150
151 define('SMTP_HOST', '');
152 // SMTP Host to send outgoing mail. Blank - use system MTA.
153
154 define('SMTP_LOGIN', '');
155 define('SMTP_PASSWORD', '');
156 // These two options enable SMTP authentication when sending
157 // outgoing mail. Only used with SMTP_HOST
158
09e8bdfd
AD
159 // ***************************************
160 // *** Other settings (less important) ***
161 // ***************************************
65eebd13 162
09e8bdfd
AD
163 define('CHECK_FOR_NEW_VERSION', true);
164 // Check for new versions of tt-rss automatically.
165
09e8bdfd
AD
166 define('ENABLE_GZIP_OUTPUT', false);
167 // Selectively gzip output to improve wire performance. This requires
168 // PHP Zlib extension on the server.
8d34aa5b
AD
169 // Enabling this can break tt-rss in several httpd/php configurations,
170 // if you experience weird errors and tt-rss failing to start, blank pages
171 // after login, or content encoding errors, disable it.
e2bcd11b 172
0f28f81f
AD
173 define('PLUGINS', 'auth_remote, auth_internal, note');
174 // Comma-separated list of plugins to load automatically for all users.
175 // System plugins have to be specified here. Please enable at least one
176 // authentication plugin here (auth_*).
20b86c79
AD
177 // Users may enable other user plugins from Preferences/Plugins but may not
178 // disable plugins specified in this list.
0f28f81f 179
09e8bdfd
AD
180 define('FEEDBACK_URL', '');
181 // Displays an URL for users to provide feedback or comments regarding
182 // this instance of tt-rss. Can lead to a forum, contact email, etc.
f9ac31d6 183
6e658547 184 define('CONFIG_VERSION', 26);
f2c43604 185 // Expected config version. Please update this option in config.php
fef8a1e4
AD
186 // if necessary (after migrating all new options from this file).
187
72932a75 188 // vim:ft=php
7d4c898a 189?>