services.nextcloud: add logLevel (#56400)
a vlaue between 0 and 4 to help debug problems
This commit is contained in:
parent
23846b949c
commit
20bbfc39e4
@ -45,6 +45,11 @@ in {
|
|||||||
default = "/var/lib/nextcloud";
|
default = "/var/lib/nextcloud";
|
||||||
description = "Storage path of nextcloud.";
|
description = "Storage path of nextcloud.";
|
||||||
};
|
};
|
||||||
|
logLevel = mkOption {
|
||||||
|
type = types.ints.between 0 4;
|
||||||
|
default = 2;
|
||||||
|
description = "Log level value between 0 (DEBUG) and 4 (FATAL).";
|
||||||
|
};
|
||||||
https = mkOption {
|
https = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -281,6 +286,7 @@ in {
|
|||||||
'skeletondirectory' => '${cfg.skeletonDirectory}',
|
'skeletondirectory' => '${cfg.skeletonDirectory}',
|
||||||
${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
|
${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
|
||||||
'log_type' => 'syslog',
|
'log_type' => 'syslog',
|
||||||
|
'log_level' => '${builtins.toString cfg.logLevel}',
|
||||||
];
|
];
|
||||||
'';
|
'';
|
||||||
occInstallCmd = let
|
occInstallCmd = let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user