nixos/middleman: Add default nginx pages

This commit is contained in:
2022-10-03 22:39:35 +01:00
parent 8a5d63aef5
commit 4fda577040
2 changed files with 39 additions and 1 deletions

View File

@@ -59,7 +59,21 @@ in
forceSSL = true;
onlySSL = false;
locations = mkMerge [
{ }
{
"/".root = pkgs.linkFarm "nginx-root" [
{
name = "index.html";
path = ./default.html;
}
{
name = "cv.pdf";
path = builtins.fetchurl {
url = "https://github.com/devplayer0/cvos/releases/download/v0.1.3/bootable.pdf";
sha256 = "018wh6ps19n7323fi44njzj9yd4wqslc90dykbwfyscv7bgxhlar";
};
}
];
}
wellKnown
];
useACMEHost = lib.my.pubDomain;