2017-07-14 16:33:05 +02:00
|
|
|
# Preferences <a id="preferences"></a>
|
2013-08-02 16:37:47 +02:00
|
|
|
|
2017-09-26 18:52:32 +02:00
|
|
|
Preferences are settings a user can set for their account only,
|
|
|
|
for example the language and time zone.
|
2013-08-02 16:37:47 +02:00
|
|
|
|
2022-05-03 13:34:07 +02:00
|
|
|
Preferences can be stored either in a MySQL or in a PostgreSQL database. The database must be configured.
|
2017-09-26 18:52:32 +02:00
|
|
|
|
2017-07-14 16:33:05 +02:00
|
|
|
## Configuration <a id="preferences-configuration"></a>
|
2013-08-02 16:37:47 +02:00
|
|
|
|
2017-09-26 18:52:32 +02:00
|
|
|
The preference configuration backend is defined in the global [config.ini](03-Configuration.md#configuration-general-global) file.
|
2013-08-02 16:37:47 +02:00
|
|
|
|
2022-05-03 13:34:07 +02:00
|
|
|
You have to define a [database resource](04-Resources.md#resources-configuration-database)
|
2014-12-18 15:40:26 +01:00
|
|
|
which will be referenced as resource for the preferences storage.
|
2013-09-02 16:08:17 +02:00
|
|
|
|
2017-09-26 18:52:32 +02:00
|
|
|
You need to add the following section to the global [config.ini](03-Configuration.md#configuration-general-global) file
|
|
|
|
in order to store preferences in a database.
|
2013-09-02 16:08:17 +02:00
|
|
|
|
2014-12-18 15:40:26 +01:00
|
|
|
```
|
2017-09-26 18:52:32 +02:00
|
|
|
[global]
|
|
|
|
config_resource = "icingaweb_db"
|
2014-12-18 15:40:26 +01:00
|
|
|
```
|