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
|
# 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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue