mailsystem: Add option to use selfsigned certificates in preparation for testing
This commit is contained in:
parent
6d6b856bee
commit
a592881b8b
5 changed files with 84 additions and 18 deletions
|
|
@ -154,6 +154,19 @@ in {
|
|||
'';
|
||||
default = {};
|
||||
};
|
||||
|
||||
certificateScheme = lib.mkOption {
|
||||
type = lib.types.enum ["acme" "selfsigned"];
|
||||
default = "acme";
|
||||
description = ''
|
||||
The scheme to use for managing TLS certificates:
|
||||
|
||||
1. `acme`: The server retrieves letsencrypt certificates via NixOS's acme module using nginx.
|
||||
2. `selfsigned`: The server creates self-signed certificates on the fly (intended for testing).
|
||||
'';
|
||||
internal = true;
|
||||
visible = false;
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
|
@ -164,6 +177,7 @@ in {
|
|||
./redis.nix
|
||||
./roundcube.nix
|
||||
./rspamd.nix
|
||||
./selfsigned.nix
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue