diff options
Diffstat (limited to 'config.php-dist')
| -rw-r--r-- | config.php-dist | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/config.php-dist b/config.php-dist index 2ee1c719d..6e8a39304 100644 --- a/config.php-dist +++ b/config.php-dist @@ -1,4 +1,21 @@ <?php + /* + This file can be used to customize global defaults if environment method is not available (i.e. no Docker). + + Use the following syntax to override defaults (options are declared in classes/config.php, prefixed by TTRSS_): + + putenv('TTRSS_DB_HOST=myserver') + putenv('TTRSS_SELF_URL_PATH=http://example.com/tt-rss') + + Plugin-required constants also go here, using define(): + + define('LEGACY_CONSTANT', 'value'); + + etc. + + See this page for more information: https://tt-rss.org/wiki/GlobalConfig + */ + // ******************************************* // *** Database configuration (important!) *** // ******************************************* @@ -131,7 +148,7 @@ // Disabling auth_internal in this list would automatically disable // reset password link on the login form. - define('LOG_DESTINATION', 'sql'); + define('Config::get(Config::LOG_DESTINATION)', 'sql'); // Error log destination to use. Possible values: sql (uses internal logging // you can read in Preferences -> System), syslog - logs to system log. // Setting this to blank uses PHP logging (usually to http server |