hosts/dn42-il-gw1: Display dn42 peering page
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
./documentation.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.clerie.mercury-vm.enable = true;
|
profiles.clerie.mercury-vm.enable = true;
|
||||||
|
|||||||
21
hosts/dn42-il-gw1/documentation.nix
Normal file
21
hosts/dn42-il-gw1/documentation.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user