From 4681576a4467bff5b3a77d96cec7f47f8f2ff6bf Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 10 May 2023 16:33:59 +0200 Subject: [PATCH] update --- services/settings/README.md | 39 ++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/services/settings/README.md b/services/settings/README.md index 8148c3d12..bb98a027b 100644 --- a/services/settings/README.md +++ b/services/settings/README.md @@ -1,10 +1,28 @@ # Settings -When using oCIS, the requirement to store settings arises. This extension provides functionality -for other extensions to register new settings within oCIS. It is responsible for storing the respective -settings values as well. +The "settings" service provides functionality for other services to register +new settings within oCIS. It is also responsible for storing the respective settings +values as well. -{{< mermaid class="text-center">}} +The "settings" service is currently used for +* managing the users' "profile" settings. E.g. the language and the Email notification + settings +* managing the possible user roles and their respecitve permssions +* managing the assignment of roles to users + +The "settings" service supports two different backends for persisting the data. The backend +can be set using `SETTINGS_STORE_TYPE` environment variable. Supported values are: + +* `metadata`: The default. This backend persists the settings data via the `storeage-system` service +* `filesystem`: This backend persists the settings data in a directory on the local filesystem. + The directory can be configured with `SETTINGS_DATA_PATH`. This backend is not suitable for running + multiple intances of the `settings` service in a scale-out deployment. It should be considered + deprecated. + + The diagram shows how the settings service integrates into oCIS: -**Settings management:** -- oCIS services can register *settings bundles* with the ocis-settings service. +## Settings Management -**Settings usage:** -- Extensions can query ocis-settings for *settings values* of a user. +oCIS services can register *settings bundles* with the ocis-settings service. + +## Settings Usage + +Services can query ocis-settings for *settings values* of a user.