diff --git a/hosts/elnudrop/hosts/jichan.org/default.nix b/hosts/elnudrop/hosts/jichan.org/default.nix index ddba625..627b50e 100644 --- a/hosts/elnudrop/hosts/jichan.org/default.nix +++ b/hosts/elnudrop/hosts/jichan.org/default.nix @@ -1,5 +1,10 @@ -{ - services.nginx.virtualHosts."jichan.org" = { +let host = "jichan.org"; in { + services.nginx.virtualHosts."www.${host}" = { + forceSSL = true; + enableACME = true; + globalRedirect = host; + }; + services.nginx.virtualHosts."${host}" = { forceSSL = true; enableACME = true; extraConfig = '' diff --git a/hosts/elnudrop/hosts/tegakituesday.com/default.nix b/hosts/elnudrop/hosts/tegakituesday.com/default.nix index 272ed02..64ae077 100644 --- a/hosts/elnudrop/hosts/tegakituesday.com/default.nix +++ b/hosts/elnudrop/hosts/tegakituesday.com/default.nix @@ -1,6 +1,6 @@ let host = "tegakituesday.com"; in { services.nginx.virtualHosts."www.${host}" = { - enableSSL = true; + forceSSL = true; enableACME = true; globalRedirect = host; };