diff options
author | fox <[email protected]> | 2021-02-23 16:05:41 +0300 |
---|---|---|
committer | fox <[email protected]> | 2021-02-23 16:05:41 +0300 |
commit | d276785a104eabe269f3faa14b12edb2a3c97a6d (patch) | |
tree | 57367f6fa81f94a1997ff1a7a128f076162934a6 | |
parent | 1652469fd7bf7bee2c3e217303705f66f9a29b31 (diff) |
Update 'GlobalConfig'
-rw-r--r-- | GlobalConfig.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/GlobalConfig.md b/GlobalConfig.md index 0791782..caeca67 100644 --- a/GlobalConfig.md +++ b/GlobalConfig.md @@ -15,6 +15,23 @@ Plugin-required constants also go here, using `define()`: define('LEGACY_CONSTANT', 'value');
```
+## Migrating from old-style config.php
+
+For any `config.php` settings you have changed from the defaults (normally this is the `DB_` group of settings and `SELF_URL_PATH`, replace as follows:
+
+`define('DB_PORT', 'xxx')` -> `putenv('TTRSS_DB_PORT=xxx')`.
+
+You can safely omit everything else, there's no point in adding setting that were at their default values.
+
+### Boolean values
+
+To set something to `false` use an empty value, not string literal "false", like so:
+
+**RIGHT:** `putenv('TTRSS_SINGLE_USER_MODE=');` **WRONG:** `putenv('TTRSS_SINGLE_USER_MODE=false');` - this would actually enable it.
+
+[This thread](https://community.tt-rss.org/t/rip-config-php-hello-classes-config-php/4337/30) has relevant discussion and many examples.
+
+
## Available options
TBD
|