acme: append extra config
This commit is contained in:
parent
b4e456e3ac
commit
d8cdd7a912
1 changed files with 8 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
# email to send updates to, we prefix "acme" and the
|
# email to send updates to, we prefix "acme" and the
|
||||||
# name of the domain the certificate is for to it.
|
# name of the domain the certificate is for to it.
|
||||||
email = "acme+${domain}+charlie@charlieroot.dev";
|
email = "charlie@charlieroot.dev";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -30,4 +30,11 @@ in {
|
||||||
"mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
|
"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;
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue