acme: append extra config

This commit is contained in:
Bloxx12 2025-05-22 18:32:26 +02:00
commit 9caba268fa
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -12,7 +12,7 @@
# email to send updates to, we prefix "acme" and the
# name of the domain the certificate is for to it.
email = "acme+${domain}+charlie@charlieroot.dev";
email = "charlie@charlieroot.dev";
group = "nginx";
};
in {
@ -30,4 +30,11 @@ in {
"mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
};
};
services.nginx.appendConfig = ''
location /.well-known/acme-challenge/ {
rewrite /.well-known/acme-challenge/(.*) /$1 break;
root /var/lib/acme/.well-known/acme-challenge;
}
'';
}