1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:25:56 +00:00

finalize config:: migration; make config.php optional

This commit is contained in:
Andrew Dolgov
2021-02-22 22:51:12 +03:00
parent 6b7af973b2
commit 445ac1213c
3 changed files with 9 additions and 4 deletions

View File

@@ -2,7 +2,9 @@
class Config {
private const _ENVVAR_PREFIX = "TTRSS_";
/* overriding defaults (defined below in _DEFAULTS[]) via environment: DB_TYPE becomes TTRSS_DB_TYPE, etc */
// TODO: this should be extensible so plugins could add their own global directives (with defaults)
// overriding defaults (defined below in _DEFAULTS[]) via environment: DB_TYPE becomes TTRSS_DB_TYPE, etc
const DB_TYPE = "DB_TYPE";
const DB_HOST = "DB_HOST";