1
0

hosts/dn42-il-gw1: Display dn42 peering page

This commit is contained in:
2025-12-03 20:34:51 +01:00
parent 7403159730
commit 4fb86e3e1e
2 changed files with 23 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
imports =
[
./hardware-configuration.nix
./documentation.nix
];
profiles.clerie.mercury-vm.enable = true;

View File

@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
{
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx.virtualHosts = {
"${config.networking.fqdn}" = {
enableACME = true;
forceSSL = true;
root = pkgs.writeTextFile {
name = "dn42-router-documentation";
text = config.profiles.clerie.dn42-router.htmlDocumentation;
destination = "/index.html";
};
};
};
}