3. Configuration#
This chapter is a reference to all app settings of the Guardian divided by component. These settings
can be configured either via the univention-app
command line interface or the Univention App center
dialog for app settings.
To change the log level for the Management API for example, use the following command:
univention-app configure guardian-management-api --set \
"guardian-management-api/logging/level=ERROR"
If any of the settings are changed, the application is restarted automatically.
3.1. Guardian Management API#
3.1.1. General#
- guardian-management-api/base_url#
Defines the base URL of the API. If unset the URL is generated from hostname and domain name of the server
the API is installed on. You must not specify the protocol here as this is set in guardian-management-api/protocol
.
- guardian-management-api/protocol#
Defines the protocol of the API. Can be either http
or https
.
Default is https
.
3.1.2. Logging#
- guardian-management-api/logging/structured#
Can be either True
or False
. If set to True
, the logging output of the Management API is structured
as json data.
- guardian-management-api/logging/level#
Sets the log level of the application. It can be one of DEBUG
, INFO
, WARNING
, ERROR
, CRITICAL
.
- guardian-management-api/logging/format#
This setting defines the format of the log output if guardian-management-api/logging/structured
is set to False
. The documentation for configuring the log format can be found
here.
3.1.3. CORS#
- guardian-management-api/cors/allowed-origins#
Comma-separated list of hosts that are allowed to make cross-origin resource sharing (CORS) requests to the server. At a minimum, this must include the host of the Management UI, if installed on a different server.
3.1.4. Authentication#
- guardian-management-api/oauth/keycloak-uri#
Base URI of the Keycloak server for authentication. If unset the application tries to derive the Keycloak URI from
the UCR variable keycloak/server/sso/fqdn
or fall back to the domain name of the host the application is installed on.
- guardian-management-api/oauth/keycloak-client-secret#
Keycloak client secret.
3.3. Guardian Management UI#
- guardian-management-ui/management-api-url#
URL for the Guardian Management API. If not set, the URL is generated from hostname and domain name.
3.3.1. Authentication#
- guardian-management-ui/oauth/keycloak-uri#
Base URI of the Keycloak server for authentication. If unset the application tries to derive the Keycloak URI from
the UCR variable keycloak/server/sso/fqdn
or fall back to the domain name of the host the application is installed on.