nixos/middleman: Add default nginx pages
This commit is contained in:
		@@ -0,0 +1,24 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
	<title>Welcome to /dev/player0-land!</title>
 | 
			
		||||
	<style>
 | 
			
		||||
		html { color-scheme: light dark; }
 | 
			
		||||
		body { width: 35em; margin: 0 auto;
 | 
			
		||||
		font-family: Tahoma, Verdana, Arial, sans-serif; }
 | 
			
		||||
	</style>
 | 
			
		||||
	</head>
 | 
			
		||||
 | 
			
		||||
	<body>
 | 
			
		||||
		<h1>Welcome to <del>nginx</del> /dev/player0-land!</h1>
 | 
			
		||||
		<p>If you see this page, <del>the nginx web server is successfully installed and
 | 
			
		||||
		working</del> I haven't built a proper website yet. Further configuration is required.</p>
 | 
			
		||||
 | 
			
		||||
		<p>For online documentation and support please refer to
 | 
			
		||||
		<a href="https://github.com/devplayer0">github.com/devplayer0</a>.<br/>
 | 
			
		||||
		Commercial support is available at
 | 
			
		||||
		<a href="mailto:j@ckos.ie">j@ckos.ie</a>.</p>
 | 
			
		||||
 | 
			
		||||
		<p><em>Thank you for <del>using nginx</del> visiting.</em></p>
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user