From 63ebd0e0c48483cc581f736df0f09176cca2a401 Mon Sep 17 00:00:00 2001 From: Yadd Date: Tue, 11 Jun 2024 09:35:02 +0400 Subject: [PATCH] Add logger parameters in doc --- Dockerfile | 2 +- README.md | 1 + packages/federated-identity-service/Dockerfile | 2 ++ packages/federated-identity-service/README.md | 3 +++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2efe25db..dd15f3c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ env BASE_URL= \ LDAP_USER= \ LDAP_PASSWORD= \ LDAP_URI= \ - LOGGER=error \ + LOG_LEVEL=error \ LOG_TRANSPORTS=Console \ MATRIX_SERVER= \ MATRIX_DATABASE_ENGINE= \ diff --git a/README.md b/README.md index 09c8d46a..3f78814e 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ This repository provides a docker image. Here are the environment variables: * `UPDATE_FEDERATED_IDENTITY_HASHES_CRON` _(default: `3 3 * * *`)_ * Logs: * `LOG_TRANSPORTS`: set to `Console` + * `LOG_LEVEL`: default to "error", possible values: "error", "warn", "info", "http", "verbose", "debug", "silly" * `TRUSTED_PROXIES`: IP list of server allowed to set `X-Frowarded-For` header * Rate limits _(see [express-rate-limit](https://www.npmjs.com/package/express-rate-limit))_: * `RATE_LIMITING_WINDOW` diff --git a/packages/federated-identity-service/Dockerfile b/packages/federated-identity-service/Dockerfile index dbbcf646..f1f1c6a9 100644 --- a/packages/federated-identity-service/Dockerfile +++ b/packages/federated-identity-service/Dockerfile @@ -14,6 +14,8 @@ ENV BASE_URL= \ LDAP_USER= \ LDAP_PASSWORD= \ LDAP_URI= \ + LOG_LEVEL=error \ + LOG_TRANSPORTS=Console \ MATRIX_DATABASE_ENGINE= \ MATRIX_DATABASE_HOST= \ MATRIX_DATABASE_NAME= \ diff --git a/packages/federated-identity-service/README.md b/packages/federated-identity-service/README.md index 245d1648..76e2f7d0 100644 --- a/packages/federated-identity-service/README.md +++ b/packages/federated-identity-service/README.md @@ -61,6 +61,9 @@ You can configure it using environment variables: * `CRON_SERVICE` _(true/false)_: enable ot disable cron tasks. It is required to have at least one active federated-odentity-service with `CRON_SERVICE` active per database + * Logs: + * `LOG_TRANSPORTS`: set to `Console` + * `LOG_LEVEL`: default to "error", possible values: "error", "warn", "info", "http", "verbose", "debug", "silly" A federation server is also a [Matrix Identity Service](matrix-identity-server/README.md), thus all parameters of this service can also be enabled but this is interseting