diff --git a/hosts/testvm01/configuration.nix b/hosts/testvm01/configuration.nix index c493c76..572084b 100644 --- a/hosts/testvm01/configuration.nix +++ b/hosts/testvm01/configuration.nix @@ -62,6 +62,39 @@ git ]; + # Test nginx with ACME certificate from OpenBao PKI + services.nginx = { + enable = true; + virtualHosts."testvm01.home.2rjus.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = pkgs.writeTextDir "index.html" '' + + +
+If you're seeing this over HTTPS, the migration worked!
+Why do programmers prefer dark mode?
+Because light attracts bugs.
+Certificate issued by: vault.home.2rjus.net
+ + + ''; + }; + }; + }; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];