]> git.wh0rd.org Git - tt-rss.git/blob - config.php-dist
pngcrush.sh
[tt-rss.git] / config.php-dist
1 <?php
2         // *******************************************
3         // *** Database configuration (important!) ***
4         // *******************************************
5
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");
11         define('DB_PORT', ''); // usually 5432 for PostgreSQL, 3306 for MySQL
12
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
21         define('SELF_URL_PATH', 'http://example.org/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://example.org/tt-rss/
24         // You need to set this option correctly otherwise several features
25         // including PUSH, bookmarklets and browser integration will not work properly.
26
27         define('SINGLE_USER_MODE', false);
28         // Operate in single user mode, disables all functionality related to
29         // multiple users and authentication. Enabling this assumes you have
30         // your tt-rss directory protected by other means (e.g. http auth).
31
32         define('SIMPLE_UPDATE_MODE', false);
33         // Enables fallback update mode where tt-rss tries to update feeds in
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
40
41         // *****************************
42         // *** Files and directories ***
43         // *****************************
44
45         define('PHP_EXECUTABLE', '/usr/bin/php');
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.
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
56         define('CACHE_DIR', 'cache');
57         // Local cache directory for RSS feed content.
58
59         define('ICONS_DIR', "feed-icons");
60         define('ICONS_URL', "feed-icons");
61         // Local and URL path to the directory, where feed favicons are stored.
62         // Unless you really know what you're doing, please keep those relative
63         // to tt-rss main directory.
64
65         // **********************
66         // *** Authentication ***
67         // **********************
68
69         // Please see PLUGINS below to configure various authentication modules.
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
81         // *********************
82         // *** Feed settings ***
83         // *********************
84
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.
89
90         // ****************************
91         // *** Sphinx search plugin ***
92         // ****************************
93
94         define('SPHINX_SERVER', 'localhost:9312');
95         // Hostname:port combination for the Sphinx server.
96
97         define('SPHINX_INDEX', 'ttrss, delta');
98         // Index name in Sphinx configuration. You can specify multiple indexes
99         // as a comma-separated string.
100         // Example configuration files are available on tt-rss wiki.
101
102         // ***********************************
103         // *** Self-registrations by users ***
104         // ***********************************
105
106         define('ENABLE_REGISTRATION', false);
107         // Allow users to register themselves. Please be aware that allowing
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
119         // **********************************
120         // *** Cookies and login sessions ***
121         // **********************************
122
123         define('SESSION_COOKIE_LIFETIME', 86400);
124         // Default lifetime of a session (e.g. login) cookie. In seconds,
125         // 0 means cookie will be deleted when browser closes.
126
127         // *********************************
128         // *** Email and digest settings ***
129         // *********************************
130
131         // Tiny Tiny RSS sends mail via PHP mail() function, unless handled
132         // by a plugin.
133
134         // If you need SMTP support, take a look here:
135         // https://git.tt-rss.org/fox/ttrss-mailer-smtp
136
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         // Set this to false to disable digests entirely.
145
146         // ***************************************
147         // *** Other settings (less important) ***
148         // ***************************************
149
150         define('CHECK_FOR_UPDATES', true);
151         // Check for updates automatically if running Git version
152
153         define('ENABLE_GZIP_OUTPUT', false);
154         // Selectively gzip output to improve wire performance. This requires
155         // PHP Zlib extension on the server.
156         // Enabling this can break tt-rss in several httpd/php configurations,
157         // if you experience weird errors and tt-rss failing to start, blank pages
158         // after login, or content encoding errors, disable it.
159
160         define('PLUGINS', 'auth_internal, note');
161         // Comma-separated list of plugins to load automatically for all users.
162         // System plugins have to be specified here. Please enable at least one
163         // authentication plugin here (auth_*).
164         // Users may enable other user plugins from Preferences/Plugins but may not
165         // disable plugins specified in this list.
166         // Disabling auth_internal in this list would automatically disable
167         // reset password link on the login form.
168
169         define('LOG_DESTINATION', 'sql');
170         // Error log destination to use. Possible values: sql (uses internal logging
171         // you can read in Preferences -> System), syslog - logs to system log.
172         // Setting this to blank uses PHP logging (usually to http server
173         // error.log).
174         // Note that feed updating daemons don't use this logging facility
175         // for normal output.
176
177         define('CONFIG_VERSION', 26);
178         // Expected config version. Please update this option in config.php
179         // if necessary (after migrating all new options from this file).
180
181         // vim:ft=php