X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FConfig.md;h=3e0459f9c8aa480f9fa6429fde8164a34b365f45;hb=3cf9edf7cc9df7ac9af53d5ec49935a9079c2161;hp=f2224f5de7f2d573791e32dc642c441b8376ce09;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/doc/Config.md b/doc/Config.md index f2224f5de7..3e0459f9c8 100644 --- a/doc/Config.md +++ b/doc/Config.md @@ -37,11 +37,14 @@ The `config` directory holds key configuration files and can have different conf All of them have to end with `.config.php` and must not include `-sample` in their name. 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. +- `local.config.php` holds the base node custom configuration. +- Any other file in this folder is meant for additional configuration (e.g. for addons). Addons can define their own default configuration values in `addon/[addon]/config/[addon].config.php` which is loaded when the addon is activated. +If needed, an alternative `config` path can be used by using the `FRIENDICA_CONFIG_DIR` environment variable (full path required!). +This is useful in case of hardening the system by separating configuration from program binaries. + ### Static Configuration location The `static` directory holds the codebase default configurations files. @@ -56,7 +59,7 @@ Currently, the following configurations are included: The legacy `.htconfig.php` configuration file is still supported, but is deprecated and will be removed in a subsequent Friendica release. The migration is pretty straightforward: -If you had any addon-specific configuration in your `.htconfig.php`, just copy `config/addon-sample.config.php` to `config/addon.config.php` and move your configuration values. +If you had any addon-specific configuration in your `.htconfig.php`, copy `config/local-sample.config.php` to `config/addon.config.php` and move your configuration values. Afterwards, copy `config/local-sample.config.php` to `config/local.config.php`, move the remaining configuration values to it according to the following conversion chart, then rename your `.htconfig.php` to check your node is working as expected before deleting it.