mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ config, niveumPackages ,... }:
|
|
let
|
|
port = 2857;
|
|
in
|
|
{
|
|
services.go-webring = {
|
|
enable = true;
|
|
host = "dichtungsring.kmein.de";
|
|
listenAddress = "127.0.0.1:${toString port}";
|
|
package = niveumPackages.go-webring;
|
|
members = [
|
|
{ username = "meteora"; site = "meteora.xn--kiern-0qa.de"; }
|
|
{ username = "huldra"; site = "huldras-halbtraum.com"; }
|
|
];
|
|
homePageTemplate = ''
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Dichtungsring</title>
|
|
</head>
|
|
<body>
|
|
<h1>Willkommen beim Dichtungs-Ring</h1>
|
|
<p>Ein <a href="https://de.wikipedia.org/wiki/Webring">Webring</a> für die Dichtung.</p>
|
|
<section id="members">
|
|
<table><tbody>{{ . }}</tbody></table>
|
|
</section>
|
|
</body>
|
|
</html>
|
|
'';
|
|
};
|
|
|
|
services.nginx.virtualHosts."dichtungsring.kmein.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/".proxyPass = "http://${config.services.go-webring.listenAddress}";
|
|
};
|
|
}
|