tsuki/nginx/www: real website dead, add temporary website

This commit is contained in:
Oystein Kristoffer Tveit 2023-07-12 01:39:50 +02:00
parent e0250a1572
commit fc0e4f6c52
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 36 additions and 1 deletions

View File

@ -96,7 +96,42 @@
};
}
(proxy ["plex"] "http://localhost:${s ports.plex}" {})
(host ["www"] { root = "${inputs.website.packages.${pkgs.system}.default}/"; })
# (host ["www"] { root = "${inputs.website.packages.${pkgs.system}.default}/"; })
(host ["www"] {
locations."/" = {
tryFiles = "$uri /index.html";
root = pkgs.writeTextDir "index.html" ''
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nani.wtf</title>
<style>
html, body { padding: 0; margin: 0; width: 100%; height: 100%; }
* {box-sizing: border-box;}
body { text-align: center; padding: 0; background: #d6433b; color: #fff; font-family: Open Sans; }
h1 { font-size: 50px; font-weight: 100; text-align: center;}
body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;}
article { display: block; width: 700px; padding: 50px; margin: 0 auto; }
a { color: #fff; font-weight: bold;}
a:hover { text-decoration: none; }
svg { width: 75px; margin-top: 1em; }
</style>
</head>
<body>
<article>
<h1>Nani.wtf</h1>
<p style="font-size: 1.3em;">Down for maintenance</p>
<p style="font-size: 1.1em;">Will be back soon!</p>
<a href="https://git.nani.wtf">git.nani.wtf</a>
</article>
</body>
</html>
'';
};
})
(host ["matrix"] {
enableACME = lib.mkForce false;
locations."/_synapse".proxyPass = "http://$synapse_backend";