Fix the dns for rubenhensen.nl

This commit is contained in:
Ruben Hensen
2026-03-26 11:19:32 +01:00
parent 04fafd64e2
commit d9964cd689
2 changed files with 59 additions and 18 deletions
+41
View File
@@ -22,6 +22,11 @@
group = "stalwart-mail";
reloadServices = [ "stalwart-mail" ];
webroot = "/var/lib/acme/acme-challenge";
extraDomainNames = [
"autoconfig.rubenhensen.nl"
"autodiscover.rubenhensen.nl"
"rubenhensen.nl"
];
};
};
@@ -44,6 +49,42 @@
return = "301 https://$host$request_uri";
};
};
virtualHosts."autoconfig.rubenhensen.nl" = {
listen = [
{ addr = "0.0.0.0"; port = 80; }
{ addr = "[::]"; port = 80; }
];
locations."/.well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge";
};
locations."/" = {
return = "301 https://$host$request_uri";
};
};
virtualHosts."autodiscover.rubenhensen.nl" = {
listen = [
{ addr = "0.0.0.0"; port = 80; }
{ addr = "[::]"; port = 80; }
];
locations."/.well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge";
};
locations."/" = {
return = "301 https://$host$request_uri";
};
};
virtualHosts."rubenhensen.nl" = {
listen = [
{ addr = "0.0.0.0"; port = 80; }
{ addr = "[::]"; port = 80; }
];
locations."/.well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge";
};
locations."/" = {
return = "301 https://$host$request_uri";
};
};
};
# ──────────────────────────────────────────────