diff --git a/nixos/boxes/mb1/blog.nix b/nixos/boxes/mb1/blog.nix index dfbafca5..5d7913c9 100644 --- a/nixos/boxes/mb1/blog.nix +++ b/nixos/boxes/mb1/blog.nix @@ -6,14 +6,18 @@ in imports = [ ../nginx.nix ]; services.nginx = { virtualHosts = { - "blog.cyplo.net" = { + "blog.cyplo.dev" = { forceSSL = true; enableACME = true; locations."/" = { root = path; - index = "index.html"; }; }; + "blog.cyplo.net" = { + forceSSL = true; + enableACME = true; + globalRedirect = "blog.cyplo.dev"; + }; }; };