mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add new config to nix modules
This commit is contained in:
@ -16,6 +16,10 @@ let
|
|||||||
address = "localhost";
|
address = "localhost";
|
||||||
port = 7878;
|
port = 7878;
|
||||||
};
|
};
|
||||||
|
logging = {
|
||||||
|
minimum-level = "Info";
|
||||||
|
format = "Plain";
|
||||||
|
};
|
||||||
mail-debug = false;
|
mail-debug = false;
|
||||||
jdbc = {
|
jdbc = {
|
||||||
url = "jdbc:h2:///tmp/docspell-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;AUTO_SERVER=TRUE";
|
url = "jdbc:h2:///tmp/docspell-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;AUTO_SERVER=TRUE";
|
||||||
@ -286,6 +290,26 @@ in {
|
|||||||
default = defaults.bind;
|
default = defaults.bind;
|
||||||
description = "Address and port bind the rest server.";
|
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";
|
||||||
|
};
|
||||||
|
|
||||||
mail-debug = mkOption {
|
mail-debug = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = defaults.mail-debug;
|
default = defaults.mail-debug;
|
||||||
|
@ -21,6 +21,10 @@ let
|
|||||||
address = "localhost";
|
address = "localhost";
|
||||||
port = 7880;
|
port = 7880;
|
||||||
};
|
};
|
||||||
|
logging = {
|
||||||
|
minimum-level = "Info";
|
||||||
|
format = "Plain";
|
||||||
|
};
|
||||||
integration-endpoint = {
|
integration-endpoint = {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
priority = "low";
|
priority = "low";
|
||||||
@ -210,6 +214,25 @@ in {
|
|||||||
description = "Address and port bind the rest server.";
|
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 {
|
auth = mkOption {
|
||||||
type = types.submodule({
|
type = types.submodule({
|
||||||
options = {
|
options = {
|
||||||
|
Reference in New Issue
Block a user