2023-06-15 20:38:42 +00:00
|
|
|
{ config, ... }:{
|
2023-04-20 18:03:11 +00:00
|
|
|
# group that will own the certificates
|
|
|
|
users.groups.acme = {};
|
|
|
|
|
|
|
|
age.secrets.acme.file = ../secrets/dns_certs.secret.age;
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
preliminarySelfsigned = false;
|
|
|
|
acceptTerms = true;
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
email = "admin_acme@skynet.ie";
|
2023-06-15 20:38:42 +00:00
|
|
|
# we use our own dns authorative server for verifying we own the domain.
|
2023-04-20 18:03:11 +00:00
|
|
|
dnsProvider = "rfc2136";
|
2023-06-15 20:38:42 +00:00
|
|
|
credentialsFile = config.age.secrets.acme.path;
|
2023-04-20 18:03:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
certs = {
|
|
|
|
"skynet" = {
|
|
|
|
domain = "skynet.ie";
|
2023-04-27 00:47:17 +00:00
|
|
|
extraDomainNames = [
|
|
|
|
"*.skynet.ie"
|
|
|
|
"*.minecraft.games.skynet.ie"
|
2023-06-17 21:51:13 +00:00
|
|
|
"*.pages.skynet.ie"
|
2023-07-27 21:20:53 +00:00
|
|
|
"api.sso.skynet.ie"
|
2023-04-27 00:47:17 +00:00
|
|
|
];
|
2023-04-20 18:03:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|