miniflux-legacy/docs/config.markdown

65 lines
2.2 KiB
Markdown
Raw Normal View History

Configuration parameters
========================
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`.
Actually, the following constants can be overrided:
2014-10-31 03:01:17 +01:00
```php
<?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');
// 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);
2014-10-31 03:01:17 +01:00
// DATA_DIRECTORY => default is data (writable directory)
define('DATA_DIRECTORY', __DIR__.'/data');
2015-12-08 03:05:31 +01:00
// FAVICON_DIRECTORY => default is favicons (writable directory)
define('FAVICON_DIRECTORY', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'favicons');
// FAVICON_URL_PATH => default is data/favicons/
define('FAVICON_URL_PATH', 'data/favicons');
2015-12-08 03:05:31 +01:00
2014-10-31 03:01:17 +01:00
// DB_FILENAME => default value is db.sqlite (default database filename)
define('DB_FILENAME', 'db.sqlite');
2014-10-31 03:01:17 +01:00
// ENABLE_MULTIPLE_DB => default value is true (multiple users support)
define('ENABLE_MULTIPLE_DB', true);
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-10-31 03:01:17 +01:00
// THEME_DIRECTORY => default is themes
define('THEME_DIRECTORY', '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-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-10-31 03:01:17 +01:00
// PROXY_PORT => default is 3128 (default port of Squid)
define('PROXY_PORT', 3128);
2014-10-31 03:01:17 +01:00
// PROXY_USERNAME => default is empty (set the proxy username is needed)
define('PROXY_USERNAME', '');
2014-10-31 03:01:17 +01:00
// PROXY_PASSWORD => default is empty
define('PROXY_PASSWORD', '');
2014-10-31 03:01:17 +01:00
// ENABLE_AUTO_UPDATE => default is true (enable Miniflux update from the user interface)
define('ENABLE_AUTO_UPDATE', true);
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);
2014-10-31 03:01:17 +01:00
```