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"; + }; + }; + }; + +}