Options to be added to config.php, as a nix attribute set. Options containing secret data should be set to an attribute set containing the attribute _secret - a string pointing to a file containing the value the option should be set to. See the example to get a better picture of this: in the resulting config.php file, the email.password key will be set to the contents of the /var/keys/engelsystem/mail file.
See https://engelsystem.de/doc/admin/configuration/ for available options.
Note that the admin user login credentials cannot be set here - they always default to admin:asdfasdf. Log in and change them immediately.
Declarations
Type
attribute set
Default
{
database = {
database = "engelsystem";
host = "localhost";
username = "engelsystem";
};
}
Example
{
autoarrive = true;
database = {
database = "engelsystem";
host = "database.example.com";
password = {
_secret = "/var/keys/engelsystem/database";
};
username = "engelsystem";
};
default_locale = "de_DE";
email = {
driver = "smtp";
encryption = "tls";
from = {
address = "[email protected]";
name = "example engelsystem";
};
host = "smtp.example.com";
password = {
_secret = "/var/keys/engelsystem/mail";
};
port = 587;
username = "[email protected]";
};
maintenance = false;
min_password_length = 6;
}