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