tsuki/nginx/www: real website dead, add temporary website
This commit is contained in:
parent
e0250a1572
commit
fc0e4f6c52
|
@ -96,7 +96,42 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(proxy ["plex"] "http://localhost:${s ports.plex}" {})
|
(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"] {
|
(host ["matrix"] {
|
||||||
enableACME = lib.mkForce false;
|
enableACME = lib.mkForce false;
|
||||||
locations."/_synapse".proxyPass = "http://$synapse_backend";
|
locations."/_synapse".proxyPass = "http://$synapse_backend";
|
||||||
|
|
Loading…
Reference in New Issue