fix(acme): certificate valid for all domains

This commit is contained in:
Khaïs COLIN 2024-08-22 12:14:26 +00:00
parent 4bd3817fb2
commit 13fe8e2fb5

View file

@ -1,6 +1,7 @@
# vim: tabstop=2 shiftwidth=2 expandtab # vim: tabstop=2 shiftwidth=2 expandtab
let let
fqdn = "sourcehut.005540.xyz"; base-domain = "005540.xyz";
fqdn = "sourcehut.${base-domain}";
in in
{ {
services.sourcehut = { services.sourcehut = {
@ -42,7 +43,8 @@ in
}; };
security.acme = { security.acme = {
certs.${fqdn}.extraDomainNames = [ certs.${base-domain}.extraDomainNames = [
"${fqdn}"
"meta.${fqdn}" "meta.${fqdn}"
"git.${fqdn}" "git.${fqdn}"
]; ];
@ -60,6 +62,9 @@ in
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedProxySettings = true; recommendedProxySettings = true;
virtualHosts = { virtualHosts = {
"${base-domain}" = {
enableACME = true;
};
"${fqdn}" = { "${fqdn}" = {
enableACME = true; enableACME = true;
}; };