From 6f42b89b9a5d28e0b761a6e51970583f51e48103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 12 Aug 2023 21:20:37 +0100 Subject: [PATCH] port main blog domain to mb1, redirect .net to .dev --- nixos/boxes/mb1/blog.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"; + }; }; };