Update default config

This commit is contained in:
Frédéric Guillot 2014-10-30 22:01:17 -04:00
parent fa40424e68
commit eda790dc2b
2 changed files with 32 additions and 29 deletions

View File

@ -4,7 +4,7 @@
define('HTTP_TIMEOUT', '20'); define('HTTP_TIMEOUT', '20');
// DATA_DIRECTORY => default is data (writable directory) // DATA_DIRECTORY => default is data (writable directory)
define('DATA_DIRECTORY', 'data'); define('DATA_DIRECTORY', __DIR__.'/data');
// DB_FILENAME => default value is db.sqlite (default database filename) // DB_FILENAME => default value is db.sqlite (default database filename)
define('DB_FILENAME', 'db.sqlite'); define('DB_FILENAME', 'db.sqlite');
@ -16,7 +16,7 @@ define('ENABLE_MULTIPLE_DB', true);
define('DEBUG', true); define('DEBUG', true);
// DEBUG_FILENAME => default is data/debug.log // DEBUG_FILENAME => default is data/debug.log
define('DEBUG_FILENAME', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'debug.log'); define('DEBUG_FILENAME', DATA_DIRECTORY.'/debug.log');
// THEME_DIRECTORY => default is themes // THEME_DIRECTORY => default is themes
define('THEME_DIRECTORY', 'themes'); define('THEME_DIRECTORY', 'themes');

View File

@ -11,13 +11,14 @@ To override them, rename the file `config.default.php` to `config.php`.
Actually, the following constants can be overrided: Actually, the following constants can be overrided:
```php
<?php <?php
// HTTP_TIMEOUT => default value is 20 seconds (Maximum time to fetch a feed) // HTTP_TIMEOUT => default value is 20 seconds (Maximum time to fetch a feed)
define('HTTP_TIMEOUT', '20'); define('HTTP_TIMEOUT', '20');
// DATA_DIRECTORY => default is data (writable directory) // DATA_DIRECTORY => default is data (writable directory)
define('DATA_DIRECTORY', 'data'); define('DATA_DIRECTORY', __DIR__.'/data');
// DB_FILENAME => default value is db.sqlite (default database filename) // DB_FILENAME => default value is db.sqlite (default database filename)
define('DB_FILENAME', 'db.sqlite'); define('DB_FILENAME', 'db.sqlite');
@ -51,3 +52,5 @@ Actually, the following constants can be overrided:
// ENABLE_AUTO_UPDATE => default is true (enable Miniflux update from the user interface) // ENABLE_AUTO_UPDATE => default is true (enable Miniflux update from the user interface)
define('ENABLE_AUTO_UPDATE', true); define('ENABLE_AUTO_UPDATE', true);
```