network-homepage: init

This commit is contained in:
Astro 2022-10-22 21:38:12 +02:00
parent ed35be3bcf
commit 043014a761
4 changed files with 51 additions and 5 deletions

View File

@ -934,11 +934,11 @@
]
},
"locked": {
"lastModified": 1664301967,
"narHash": "sha256-VFffgd/XvRtwvOBUG/7HP63MXyuRWQNN+kxn45tJRC8=",
"ref": "refs/heads/master",
"rev": "666e8e44391574a6becda895e90ab336b768cd18",
"revCount": 1624,
"lastModified": 1666466378,
"narHash": "sha256-zZ+ZTjPeII1v2A2zdelDuL+XS2173PJRKhz7Qa7gUVY=",
"ref": "master",
"rev": "8fe58d2816a24bcd31b27556b54011ebcebd01c3",
"revCount": 1630,
"type": "git",
"url": "https://gitea.c3d2.de/zentralwerk/network.git"
},

View File

@ -951,6 +951,14 @@
./hosts/sshlog
];
};
network-homepage = nixosSystem' {
modules = [
self.nixosModules.microvm
./hosts/network-homepage
];
};
};
nixosModule = self.nixosModules.c3d2;

View File

@ -0,0 +1,32 @@
{ zentralwerk, config, lib, pkgs, ... }:
with lib;
{
system.stateVersion = "22.05";
c3d2.hq.statistics.enable = true;
c3d2.deployment = {
server = "server10";
mounts = [ "etc" "var"];
};
networking = {
hostName = "network-homepage";
firewall.allowedTCPPorts = [ 22 80 443 ];
};
services = {
nginx = rec {
enable = true;
virtualHosts."www.zentralwerk.org" = {
forceSSL = true;
enableACME = true;
root = "${zentralwerk.packages.${pkgs.system}.homepage}/share/doc/zentralwerk/www";
};
virtualHosts."zentralwerk.org" = virtualHosts."www.zentralwerk.org" // {
default = true;
};
};
};
}

View File

@ -89,6 +89,12 @@
"nix-serve.hq.c3d2.de"
];
proxyTo.host = config.c3d2.hosts.hydra.ip4;
} {
hostNames = [
"zentralwerk.org"
"www.zentralwerk.org"
];
proxyTo.host = config.c3d2.hosts.network-homepage.ip4;
} {
hostNames = [
"kibana.hq.c3d2.de"