diff --git a/configuration/nginx/ssl.nix b/configuration/nginx/ssl.nix index dc2b999..28e98ec 100644 --- a/configuration/nginx/ssl.nix +++ b/configuration/nginx/ssl.nix @@ -93,7 +93,6 @@ virtualHosts."${config.services.nginx.domain}" = { useACMEHost = "tlater.net"; - forceSSL = true; enableHSTS = true; locations."/".return = "200 ok"; }; @@ -101,8 +100,8 @@ }; in { - hstsIsSet = pkgs.testers.runNixOSTest { - name = "hsts-is-set"; + testNginxSSL = pkgs.testers.runNixOSTest { + name = "test-nginx-ssl"; node.specialArgs = { inherit flake-inputs; }; nodes = { @@ -122,7 +121,6 @@ testHost.copy_from_vm("/var/lib/acme/tlater.net/", "certs") client.copy_from_host(f"{testHost.out_dir}/certs", "/certs") - client.succeed("curl --max-time 10 http://testHost") res = client.succeed(" ".join([ "curl", "--show-error",