Use DNS-01 for ACME
This commit is contained in:
parent
0b3e10fd70
commit
45562df6cf
@ -209,6 +209,11 @@ with pkgs;
|
|||||||
owner = "matrix-as-signal";
|
owner = "matrix-as-signal";
|
||||||
group = "matrix-as-signal";
|
group = "matrix-as-signal";
|
||||||
};
|
};
|
||||||
|
secrets.acme = {
|
||||||
|
file = secrets/acme.age;
|
||||||
|
owner = "acme";
|
||||||
|
group = "nginx";
|
||||||
|
};
|
||||||
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -175,14 +175,13 @@
|
|||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults = {
|
defaults = {
|
||||||
email = "akasroua@disroot.org";
|
email = "akasroua@disroot.org";
|
||||||
dnsResolver = "127.0.0.1:53";
|
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
webroot = "/var/lib/acme/acme-challenge";
|
|
||||||
ocspMustStaple = true;
|
|
||||||
};
|
};
|
||||||
certs."coolneng.duckdns.org".extraDomainNames = lib.attrsets.mapAttrsToList (
|
certs."coolneng.duckdns.org" = {
|
||||||
name: value: "${name}"
|
domain = "*.coolneng.duckdns.org";
|
||||||
) config.services.nginx.virtualHosts;
|
dnsProvider = "duckdns";
|
||||||
|
environmentFile = config.age.secrets.acme.path;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Generate dhparams
|
# Generate dhparams
|
||||||
|
BIN
secrets/acme.age
Normal file
BIN
secrets/acme.age
Normal file
Binary file not shown.
@ -16,4 +16,5 @@ in
|
|||||||
"mqtt-receiver.age".publicKeys = [ zion ];
|
"mqtt-receiver.age".publicKeys = [ zion ];
|
||||||
"facebook.age".publicKeys = [ zion ];
|
"facebook.age".publicKeys = [ zion ];
|
||||||
"signal.age".publicKeys = [ zion ];
|
"signal.age".publicKeys = [ zion ];
|
||||||
|
"acme.age".publicKeys = [ zion ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user