summaryrefslogtreecommitdiff
path: root/GlobalConfig.md
diff options
context:
space:
mode:
authorfox <[email protected]>2022-01-19 15:08:15 +0300
committerfox <[email protected]>2022-01-19 15:08:15 +0300
commit0a6e9ecbfe19ed85997e3313e1d199f1211c84c7 (patch)
tree97b2b6cde766ce46e96b495a2cae2d8790c87057 /GlobalConfig.md
parent7442890547665a8cfc0ae3b315b4631b6c671fb2 (diff)
Update 'GlobalConfig'
Diffstat (limited to 'GlobalConfig.md')
-rw-r--r--GlobalConfig.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/GlobalConfig.md b/GlobalConfig.md
index 44d09a0..a7fe869 100644
--- a/GlobalConfig.md
+++ b/GlobalConfig.md
@@ -25,8 +25,10 @@ putenv('TTRSS_SESSION_COOKIE_LIFETIME='.(86400*30));
```
- Note lack of quotes around values. Regardless of method used, options should be always prefixed by `TTRSS_`.
-- Legacy plugin-required constants also go to `config.php`, using `define()`:
- Don't modify `classes/config.php`.
+- You don't need to put everything to `config.php`, only the options which you've changed from the defaults.
+
+Legacy plugin-required constants also go to `config.php`, using `define()`:
```php
define('LEGACY_CONSTANT', 'value');
@@ -50,6 +52,19 @@ 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.
+## Minimal config.php for a non-Docker setup
+
+Should have at least these options defined:
+
+```php
+putenv('TTRSS_DB_TYPE=pgsql'); # or mysql
+putenv('TTRSS_DB_HOST=mydbhost');
+putenv('TTRSS_DB_USER=mydbuser');
+putenv('TTRSS_DB_PASS=mydbpass');
+putenv('TTRSS_DB_PORT=5432'); # or 3306
+putenv('TTRSS_SELF_URL_PATH=http://myhostname.dom/tt-rss/');
+```
+
## 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: