Tingle icon indicating copy to clipboard operation
Tingle copied to clipboard

Split up config.php to clarify use

Open prodigion opened this issue 3 years ago • 0 comments

Currently, config.php has configuration parameters, reads configuration from an environment file, validates configuration, and has sql transaction code. These should be mostly split to separate files to separate what users should/shouldn't touch.

Default configuration could go in a separate file (/includes/DefaultSettings.php), with site-specific configuration could go in its own file (LocalSettings.php). Or put it all in the database. It shouldn't rely on environment variables or .env files

Any logic should be moved to a separate file.

prodigion avatar Nov 11 '21 16:11 prodigion