fix(acme): certificate valid for all domains
This commit is contained in:
parent
4bd3817fb2
commit
13fe8e2fb5
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# vim: tabstop=2 shiftwidth=2 expandtab
|
||||
let
|
||||
fqdn = "sourcehut.005540.xyz";
|
||||
base-domain = "005540.xyz";
|
||||
fqdn = "sourcehut.${base-domain}";
|
||||
in
|
||||
{
|
||||
services.sourcehut = {
|
||||
|
|
@ -42,7 +43,8 @@ in
|
|||
};
|
||||
|
||||
security.acme = {
|
||||
certs.${fqdn}.extraDomainNames = [
|
||||
certs.${base-domain}.extraDomainNames = [
|
||||
"${fqdn}"
|
||||
"meta.${fqdn}"
|
||||
"git.${fqdn}"
|
||||
];
|
||||
|
|
@ -60,6 +62,9 @@ in
|
|||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"${base-domain}" = {
|
||||
enableACME = true;
|
||||
};
|
||||
"${fqdn}" = {
|
||||
enableACME = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue