From a20e41574da17d19f584fb43adc804464d8655fb Mon Sep 17 00:00:00 2001 From: Anatoly Sablin Date: Tue, 28 Jan 2020 23:20:29 +0300 Subject: [PATCH] Update docs. Add a new options and configuration. --- docs/configure.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/configure.md b/docs/configure.md index a133b9d..decd0e6 100644 --- a/docs/configure.md +++ b/docs/configure.md @@ -58,7 +58,45 @@ Commonly the `server.publicUrl` should be the same value as the `trusted_third_p ## Storage ### SQLite -`storage.provider.sqlite.database`: Absolute location of the SQLite database +```yaml +storage: + backend: sqlite # default + provider: + sqlite: + database: /var/lib/ma1sd/store.db # Absolute location of the SQLite database +``` + +### Postgresql +```yaml +storage: + backend: postgresql + provider: + postgresql: + database: //localhost:5432/ma1sd + username: ma1sd + password: secret_password +``` + +## Logging +```yaml +logging: + root: error # default level for all loggers (apps and thirdparty libraries) + app: info # log level only for the ma1sd +``` + +Possible value: `trace`, `debug`, `info`, `warn`, `error`, `off`. + +Default value for root level: `info`. + +Value for app level can be specified via `MA1SD_LOG_LEVEL` environment variable, configuration or start options. + +Default value for app level: `info`. + +| start option | equivalent configuration | +| --- | --- | +| | app: info | +| -v | app: debug | +| -vv | app: trace | ## Identity stores See the [Identity stores](stores/README.md) for specific configuration