This section explains the most important configuration items which may need to be set or changed in order to make Kadi4Mat work properly. The configuration is typically specified via a corresponding configuration file. The location of this file and which of the configuration items must be set or changed depends on the installation method. It is therefore recommended to have a working (or work in progress) Kadi4Mat installation before reading through this section.

Note that the configuration file of Kadi4Mat is a normal Python file. This means that it always has to be syntactically correct, but it also allows imports, calculations and all other Python features. For example, it can be used in combination with some useful constants defined in the Kadi4Mat source code (using the kadi Python package):

import kadi.lib.constants as const


# Rest of the config file.


Whenever changing the configuration file in production environments once Kadi4Mat is installed successfully, it may be necessary to restart the application and/or dependent services for any changes to take effect, similar to performing an update.


Some configurations can also be adjusted via a graphical sysadmin interface, which also does not require a restart of the application. This interface can be found below the Settings menu item in the dropdown menu on the far right of the navigation bar in Kadi4Mat, once a user is set as a sysadmin. To initially set a user as sysadmin, the Kadi CLI can be used after installing and configuring Kadi4Mat successfully:

sudo su - kadi                # Switch to the kadi user (in production environments)
kadi users sysadmin <user_id> # Set the user given by its ID via <user_id> as sysadmin

If not already known, the (persistent) ID of a user can be retrieved via the web interface on the overview page of the corresponding user.


Configuration values set via this interface take precedence over any values specified via a configuration file.


The following sections contain the configuration reference related to authentication and other settings. Note that all listed default values correspond to production environments.