From 4fb86e3e1e4e302ab72d1377c80890c4c716845b Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 3 Dec 2025 20:34:51 +0100 Subject: [PATCH] hosts/dn42-il-gw1: Display dn42 peering page --- hosts/dn42-il-gw1/configuration.nix | 2 ++ hosts/dn42-il-gw1/documentation.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hosts/dn42-il-gw1/documentation.nix diff --git a/hosts/dn42-il-gw1/configuration.nix b/hosts/dn42-il-gw1/configuration.nix index 5086572..12a0b38 100644 --- a/hosts/dn42-il-gw1/configuration.nix +++ b/hosts/dn42-il-gw1/configuration.nix @@ -4,6 +4,8 @@ imports = [ ./hardware-configuration.nix + + ./documentation.nix ]; profiles.clerie.mercury-vm.enable = true; diff --git a/hosts/dn42-il-gw1/documentation.nix b/hosts/dn42-il-gw1/documentation.nix new file mode 100644 index 0000000..03283d8 --- /dev/null +++ b/hosts/dn42-il-gw1/documentation.nix @@ -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"; + }; + }; + }; + +}