mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-13 23:28:20 +01:00
Use DNS validation
This commit is contained in:
parent
c96a0534aa
commit
4d4bdbefec
4 changed files with 32 additions and 6 deletions
|
|
@ -95,6 +95,10 @@ in
|
|||
owner = config.users.users.akkoma.name;
|
||||
group = config.users.users.akkoma.group;
|
||||
};
|
||||
secrets.porkbun = {
|
||||
sopsFile = ../../secrets/porkbun.env;
|
||||
format = "dotenv";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
|
|
@ -111,7 +115,7 @@ in
|
|||
};
|
||||
virtualHosts.${rootDomain} = {
|
||||
onlySSL = true;
|
||||
enableACME = true;
|
||||
useACMEHost = "${rootDomain}";
|
||||
root = "/var/www/todo";
|
||||
};
|
||||
virtualHosts.${gtnhDomain} = {
|
||||
|
|
@ -140,11 +144,15 @@ in
|
|||
acceptTerms = true;
|
||||
defaults.email = "lgmrszd@disroot.org";
|
||||
certs.${rootDomain} = {
|
||||
# domain = "*.${rootDomain}";
|
||||
dnsProvider = "porkbun";
|
||||
environmentFile = config.sops.secrets.porkbun.path;
|
||||
extraDomainNames = [
|
||||
gtnhDomain
|
||||
akkoDomain
|
||||
iceDomain
|
||||
discDomain
|
||||
"*.${rootDomain}"
|
||||
# gtnhDomain
|
||||
# akkoDomain
|
||||
# iceDomain
|
||||
# discDomain
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue