2016-12-27 00:01:46 +01:00
|
|
|
Configuration Parameters
|
2014-04-06 03:58:17 +02:00
|
|
|
========================
|
|
|
|
|
|
|
|
How do I override application variables?
|
|
|
|
----------------------------------------
|
|
|
|
|
|
|
|
There are few settings that can't be changed by the user interface.
|
|
|
|
These parameters are defined with PHP constants.
|
|
|
|
|
|
|
|
To override them, rename the file `config.default.php` to `config.php`.
|
|
|
|
|
2016-12-27 00:01:46 +01:00
|
|
|
Database configuration
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
By default, Miniflux uses Sqlite but Postgres is also supported.
|
|
|
|
|
|
|
|
### Sqlite configuration
|
|
|
|
|
|
|
|
You could change the default location of the Sqlite file by changing the default values:
|
|
|
|
|
|
|
|
```php
|
|
|
|
define('DB_DRIVER', 'sqlite');
|
|
|
|
define('DB_FILENAME', DATA_DIRECTORY.'/db.sqlite');
|
|
|
|
```
|
|
|
|
|
|
|
|
### Postgres configuration
|
|
|
|
|
|
|
|
Miniflux will creates the schema automatically but not the database itself:
|
|
|
|
|
|
|
|
```sql
|
|
|
|
CREATE DATABASE miniflux;
|
|
|
|
```
|
|
|
|
|
|
|
|
The `config.php` have to be modified as well:
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
```php
|
2016-12-27 00:01:46 +01:00
|
|
|
define('DB_DRIVER', 'postgres');
|
|
|
|
|
|
|
|
// Replace these values:
|
|
|
|
define('DB_HOSTNAME', 'localhost');
|
|
|
|
define('DB_NAME', 'miniflux');
|
|
|
|
define('DB_USERNAME', 'my postgres user');
|
|
|
|
define('DB_PASSWORD', 'my secret password');
|
|
|
|
```
|
|
|
|
|
|
|
|
List of parameters
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Actually, the following constants can be overridden:
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2016-12-27 00:01:46 +01:00
|
|
|
```php
|
2014-10-31 03:01:17 +01:00
|
|
|
// HTTP_TIMEOUT => default value is 20 seconds (Maximum time to fetch a feed)
|
|
|
|
define('HTTP_TIMEOUT', '20');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2015-08-04 18:30:41 +02:00
|
|
|
// HTTP_MAX_RESPONSE_SIZE => Maximum accepted size of the response body in MB (default 2MB)
|
2015-12-08 03:05:31 +01:00
|
|
|
define('HTTP_MAX_RESPONSE_SIZE', 2097152);
|
2015-08-04 18:30:41 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// DATA_DIRECTORY => default is data (writable directory)
|
2016-12-27 00:01:46 +01:00
|
|
|
define('DATA_DIRECTORY', 'data');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2015-12-08 03:05:31 +01:00
|
|
|
// FAVICON_DIRECTORY => default is favicons (writable directory)
|
|
|
|
define('FAVICON_DIRECTORY', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'favicons');
|
|
|
|
|
2015-12-09 20:19:52 +01:00
|
|
|
// FAVICON_URL_PATH => default is data/favicons/
|
|
|
|
define('FAVICON_URL_PATH', 'data/favicons');
|
2015-12-08 03:05:31 +01:00
|
|
|
|
2016-12-27 00:01:46 +01:00
|
|
|
// Database driver: "sqlite" or "postgres", default is sqlite
|
|
|
|
define('DB_DRIVER', 'sqlite');
|
|
|
|
|
|
|
|
// Database connection parameters when Postgres is used
|
|
|
|
define('DB_HOSTNAME', 'localhost');
|
|
|
|
define('DB_NAME', 'miniflux');
|
|
|
|
define('DB_USERNAME', 'postgres');
|
|
|
|
define('DB_PASSWORD', '');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2016-12-27 00:01:46 +01:00
|
|
|
// DB_FILENAME => database file when Sqlite is used
|
|
|
|
define('DB_FILENAME', DATA_DIRECTORY.'/db.sqlite');
|
|
|
|
|
|
|
|
// Enable/disable debug mode
|
|
|
|
define('DEBUG_MODE', false);
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// DEBUG_FILENAME => default is data/debug.log
|
2014-10-31 03:10:59 +01:00
|
|
|
define('DEBUG_FILENAME', DATA_DIRECTORY.'/debug.log');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2017-01-10 00:38:32 +01:00
|
|
|
// Theme folder on the filesystem => default is themes
|
2014-10-31 03:01:17 +01:00
|
|
|
define('THEME_DIRECTORY', 'themes');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2017-01-10 00:38:32 +01:00
|
|
|
// Theme URL path => default is themes
|
|
|
|
define('THEME_URL_PATH', 'themes');
|
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// SESSION_SAVE_PATH => default is empty (used to store session files in a custom directory)
|
|
|
|
define('SESSION_SAVE_PATH', '');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// PROXY_HOSTNAME => default is empty (make HTTP requests through a HTTP proxy if set)
|
|
|
|
define('PROXY_HOSTNAME', '');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// PROXY_PORT => default is 3128 (default port of Squid)
|
|
|
|
define('PROXY_PORT', 3128);
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// PROXY_USERNAME => default is empty (set the proxy username is needed)
|
|
|
|
define('PROXY_USERNAME', '');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2014-10-31 03:01:17 +01:00
|
|
|
// PROXY_PASSWORD => default is empty
|
|
|
|
define('PROXY_PASSWORD', '');
|
2014-04-06 03:58:17 +02:00
|
|
|
|
2015-08-02 18:59:14 +02:00
|
|
|
// SUBSCRIPTION_CONCURRENT_REQUESTS => number of concurrent feeds to refresh at once
|
|
|
|
// Reduce this number on systems with limited processing power
|
|
|
|
define('SUBSCRIPTION_CONCURRENT_REQUESTS', 5);
|
2016-12-27 00:01:46 +01:00
|
|
|
|
2016-12-28 04:20:25 +01:00
|
|
|
// Disable automatically a feed after X parsing failure
|
|
|
|
define('SUBSCRIPTION_DISABLE_THRESHOLD_ERROR', 10);
|
|
|
|
|
2016-12-27 00:01:46 +01:00
|
|
|
// Allow the cronjob to be accessible from the browser
|
|
|
|
define('ENABLE_CRONJOB_HTTP_ACCESS', true);
|
2016-12-27 00:07:00 +01:00
|
|
|
|
|
|
|
// Enable/disable HTTP header X-Frame-Options
|
|
|
|
define('ENABLE_XFRAME', true);
|
|
|
|
|
|
|
|
// Enable/disable HSTS HTTP header
|
|
|
|
define('ENABLE_HSTS', true);
|
2014-10-31 03:01:17 +01:00
|
|
|
```
|