]> git.wh0rd.org - tt-rss.git/blame - config.php-dist
first stage of headline element handling refactoring
[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.
57932e18 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
57932e18
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
6eb77a31 37 // viable to keep your feeds up to date.
57932e18 38 // Still, there are more robust (and recommended) updating methods
6eb77a31 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');
57932e18
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
9e2d513d 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
57932e18 87 // intervals is disabled and all articles (which are not starred)
09e8bdfd 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 // **********************************
57932e18 122
82d77deb 123 define('SESSION_COOKIE_LIFETIME', 86400);
57932e18 124 // Default lifetime of a session (e.g. login) cookie. In seconds,
09e8bdfd 125 // 0 means cookie will be deleted when browser closes.
3907ef71 126
09e8bdfd
AD
127 // *********************************
128 // *** Email and digest settings ***
129 // *********************************
e4f7f8df 130
57932e18
AD
131 // Tiny Tiny RSS sends mail via PHP mail() function, unless handled
132 // by a plugin.
133
bc42dfb7
AD
134 // If you need SMTP support, take a look here:
135 // https://git.tt-rss.org/fox/ttrss-mailer-smtp
136
09e8bdfd
AD
137 define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
138 define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
139 // Name, address and subject for sending outgoing mail. This applies
140 // to password reset notifications, digest emails and any other mail.
141
142 define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
143 // Subject line for email digests
144
09e8bdfd
AD
145 // ***************************************
146 // *** Other settings (less important) ***
147 // ***************************************
65eebd13 148
4ca621a3
AD
149 define('CHECK_FOR_UPDATES', true);
150 // Check for updates automatically if running Git version
57932e18 151
09e8bdfd
AD
152 define('ENABLE_GZIP_OUTPUT', false);
153 // Selectively gzip output to improve wire performance. This requires
154 // PHP Zlib extension on the server.
8d34aa5b
AD
155 // Enabling this can break tt-rss in several httpd/php configurations,
156 // if you experience weird errors and tt-rss failing to start, blank pages
157 // after login, or content encoding errors, disable it.
e2bcd11b 158
ed775e4e 159 define('PLUGINS', 'auth_internal, note');
0f28f81f
AD
160 // Comma-separated list of plugins to load automatically for all users.
161 // System plugins have to be specified here. Please enable at least one
162 // authentication plugin here (auth_*).
20b86c79
AD
163 // Users may enable other user plugins from Preferences/Plugins but may not
164 // disable plugins specified in this list.
3921f508
AD
165 // Disabling auth_internal in this list would automatically disable
166 // reset password link on the login form.
57932e18 167
b367c951 168 define('LOG_DESTINATION', 'sql');
a6990df3 169 // Error log destination to use. Possible values: sql (uses internal logging
b367c951 170 // you can read in Preferences -> System), syslog - logs to system log.
57932e18 171 // Setting this to blank uses PHP logging (usually to http server
b367c951 172 // error.log).
a6990df3
AD
173 // Note that feed updating daemons don't use this logging facility
174 // for normal output.
0f28f81f 175
6e658547 176 define('CONFIG_VERSION', 26);
f2c43604 177 // Expected config version. Please update this option in config.php
fef8a1e4
AD
178 // if necessary (after migrating all new options from this file).
179
72932a75 180 // vim:ft=php