Browse Source

Manage home page with nix

main
Leonora Tindall 5 months ago
parent
commit
485b320caf
  1. 7
      hosts/felonyspork/configuration.nix
  2. 55
      include/home-index.html

7
hosts/felonyspork/configuration.nix

@ -117,6 +117,11 @@
};
};
environment.etc."www-html/index.html" = {
mode = "0666";
source = ../../include/home-index.html;
};
# NGINX webserver and ACME certs
services.nginx = {
enable = true;
@ -126,7 +131,7 @@
virtualHosts."home.nora.codes" = {
addSSL = true;
enableACME = true;
root = "/var/www/home.nora.codes";
root = "/etc/www-html/";
};
virtualHosts."bluemap.home.nora.codes" = {
addSSL = true;

55
include/home-index.html

@ -0,0 +1,55 @@
<!doctype HTML>
<html>
<head>
<title> home.nora.codes on FELONYSPORK </title>
<style>
body {
background-color: black;
color: #2F4;
font-family: monospace;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
h1 {
text-align: center;
margin-left: auto;
margin-right: auto;
}
a {
display: inline-block;
border-radius: 2px;
padding-left: 0.25em;
padding-right: 0.25em;
background-color: #2F4;
color: #D0B;
text-decoration: none;
}
a:hover {
color: #2F4;
background-color: #D0B;
}
</style>
</head>
<body>
<h1>FELONYSPORK</h1>
<p>
Welcome to FELONYSPORK, Nora's gateway server for her home network. You might be looking for:
<ul>
<li>Our Minecraft server's <a href="https://bluemap.home.nora.codes/">BlueMap</a> instance</li>
</ul>
</p>
<p>
Or, if you're a close friend or family member, you might be interested in the authenticated services:
<ul>
<li>Our home network's <a href="https://dashboard.home.nora.codes/">Grafana dashboard</a></li>
<li>Our media server <a href="https://jelly.home.nora.codes">Jellyfin</a></li>
<li>Our RSS feed bouncer <a href="https://news.home.nora.codes">TinyTinyRSS</a></li>
<li>Our downloads server for Linux ISOs <a href="https://torrent.home.nora.codes">qBittorrent</a></li>
<li>Our cross-machine sync controller <a href="https://sync.home.nora.codes">Syncthing</a></li>
</ul>
</p>
</body>
</html>
Loading…
Cancel
Save