cluster/services/certificates: init, add internal wildcard cert
This commit is contained in:
parent
2348b8f0f3
commit
b56e484bd6
2 changed files with 26 additions and 0 deletions
12
cluster/services/certificates/default.nix
Normal file
12
cluster/services/certificates/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
services.certificates = {
|
||||||
|
nodes = {
|
||||||
|
internal-wildcard = [ "checkmate" "VEGAS" ];
|
||||||
|
};
|
||||||
|
nixos = {
|
||||||
|
internal-wildcard = [
|
||||||
|
./internal-wildcard.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
14
cluster/services/certificates/internal-wildcard.nix
Normal file
14
cluster/services/certificates/internal-wildcard.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ tools, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (tools.meta) domain;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
security.acme.certs."internal.${domain}" = {
|
||||||
|
domain = "*.internal.${domain}";
|
||||||
|
extraDomainNames = [ "*.internal.${domain}" ];
|
||||||
|
dnsProvider = "pdns";
|
||||||
|
group = "nginx";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue