mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add new config to nix modules
This commit is contained in:
@ -21,6 +21,10 @@ let
|
||||
address = "localhost";
|
||||
port = 7880;
|
||||
};
|
||||
logging = {
|
||||
minimum-level = "Info";
|
||||
format = "Plain";
|
||||
};
|
||||
integration-endpoint = {
|
||||
enabled = false;
|
||||
priority = "low";
|
||||
@ -210,6 +214,25 @@ in {
|
||||
description = "Address and port bind the rest server.";
|
||||
};
|
||||
|
||||
logging = mkOption {
|
||||
type = types.submodule({
|
||||
options = {
|
||||
minimum-level = mkOption {
|
||||
type = types.str;
|
||||
default = defaults.logging.minimum-level;
|
||||
description = "The minimum level for logging to control verbosity.";
|
||||
};
|
||||
format = mkOption {
|
||||
type = types.str;
|
||||
default = defaults.logging.format;
|
||||
description = "The log format. One of: Fancy, Plain, Json or Logfmt";
|
||||
};
|
||||
};
|
||||
});
|
||||
default = defaults.logging;
|
||||
description = "Settings for logging";
|
||||
};
|
||||
|
||||
auth = mkOption {
|
||||
type = types.submodule({
|
||||
options = {
|
||||
|
Reference in New Issue
Block a user