summaryrefslogtreecommitdiff
path: root/GlobalConfig.md
diff options
context:
space:
mode:
authorfox <[email protected]>2021-03-16 08:53:35 +0300
committerfox <[email protected]>2021-03-16 08:53:35 +0300
commit6f6f9a3f316fb496134ba2d14de56fd856a3cb01 (patch)
treeb7a9bda4045776480dd6338759a5e87e346c4e23 /GlobalConfig.md
parentabbda10cd38a9781ed961f6613a5f0ab40753570 (diff)
Update 'GlobalConfig'
Diffstat (limited to 'GlobalConfig.md')
-rw-r--r--GlobalConfig.md8
1 files changed, 2 insertions, 6 deletions
diff --git a/GlobalConfig.md b/GlobalConfig.md
index 7285cf2..8f1ac32 100644
--- a/GlobalConfig.md
+++ b/GlobalConfig.md
@@ -2,6 +2,8 @@
Preferred method to adjust tt-rss global configuration options is through the environment, i.e. through `.env` when using Compose setup.
+All settings (including default values, see `_DEFAULTS[]`) are listed here: https://git.tt-rss.org/fox/tt-rss/src/branch/master/classes/config.php#L34
+
Alternatively, you can use `config.php` (copied from `config.php-dist`) to adjust the defaults. Use the following syntax (options are declared in `classes/config.php`, prefixed by `TTRSS_`):
```php
@@ -34,12 +36,6 @@ putenv('TTRSS_SESSION_COOKIE_LIFETIME=86400*30');
Note that all values should be precomputed when setting via `.env` because they are not evaluated by PHP and used as-is.
-## Available settings
-
-All settings (including default values, see `_DEFAULTS[]`) are listed here:
-
-https://git.tt-rss.org/fox/tt-rss/src/branch/master/classes/config.php#L34
-
## 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, using the rules above: