X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FConfig.md;h=f2224f5de7f2d573791e32dc642c441b8376ce09;hb=6001c34525867a0aa614dbc020dcbc485e515345;hp=a187331dd645cb3f34ddec3349e312fbafd5c8fd;hpb=60aedb1df9185bf1f2445662503ae1574b1ef368;p=friendica.git diff --git a/doc/Config.md b/doc/Config.md index a187331dd6..f2224f5de7 100644 --- a/doc/Config.md +++ b/doc/Config.md @@ -33,15 +33,24 @@ return [ ### Configuration location -The `config` directory holds key configuration files: +The `config` directory holds key configuration files and can have different config files. +All of them have to end with `.config.php` and must not include `-sample` in their name. -- `defaults.config.php` holds the default values for all the configuration keys that can only be set in `local.config.php`. -- `settings.config.php` holds the default values for some configuration keys that are set through the admin settings page. +Some examples of common known configuration files: - `local.config.php` holds the current node custom configuration. - `addon.config.php` is optional and holds the custom configuration for specific addons. Addons can define their own default configuration values in `addon/[addon]/config/[addon].config.php` which is loaded when the addon is activated. +### Static Configuration location + +The `static` directory holds the codebase default configurations files. +They must not be changed by users, because they can get changed from release to release. + +Currently, the following configurations are included: +- `defaults.config.php` holds the default values for all the configuration keys that can only be set in `local.config.php`. +- `settings.config.php` holds the default values for some configuration keys that are set through the admin settings page. + #### Migrating from .htconfig.php to config/local.config.php The legacy `.htconfig.php` configuration file is still supported, but is deprecated and will be removed in a subsequent Friendica release. @@ -142,7 +151,7 @@ $a->config['register_policy'] = REGISTER_CLOSED;
'config' => [ - 'register_policty' => REGISTER_CLOSED, + 'register_policy' => \Friendica\Module\Register::CLOSED, ],
'config' => [ - 'register_policty' => REGISTER_CLOSED, + 'register_policy' => \Friendica\Module\Register::CLOSED, ],