[ssl] add debug option
This commit is contained in:
parent
144aeebf0f
commit
c882570543
1 changed files with 7 additions and 1 deletions
|
|
@ -46,6 +46,12 @@ in
|
||||||
description = "Admin email in case certificate retrieval goes wrong.";
|
description = "Admin email in case certificate retrieval goes wrong.";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
debug = lib.mkOption {
|
||||||
|
description = "Enable debug logging";
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -64,8 +70,8 @@ in
|
||||||
defaults = {
|
defaults = {
|
||||||
email = cfg.adminEmail;
|
email = cfg.adminEmail;
|
||||||
inherit (cfg) dnsProvider dnsResolver;
|
inherit (cfg) dnsProvider dnsResolver;
|
||||||
enableDebugLogs = false;
|
|
||||||
credentialsFile = cfg.credentialsFile;
|
credentialsFile = cfg.credentialsFile;
|
||||||
|
enableDebugLogs = cfg.debug;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
sops.secrets.acme = {
|
sops.secrets.acme = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue