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