From cbfae24c9135d39fcafda9d44ffbf65ea3f03214 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 17 Aug 2026 23:55:01 +0300 Subject: [PATCH] use frontend redirect hosts --- rabbi-gerzi.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rabbi-gerzi.nix b/rabbi-gerzi.nix index e779de5..70fd980 100644 --- a/rabbi-gerzi.nix +++ b/rabbi-gerzi.nix @@ -11,6 +11,7 @@ }; frontend = { hostName = "rabbigerzi.com"; + redirectHostNames = [ "www.rabbigerzi.com" ]; nginx = { forceSSL = true; enableACME = true; @@ -32,12 +33,6 @@ }; }; - services.nginx.virtualHosts."www.rabbigerzi.com" = { - forceSSL = true; - enableACME = true; - globalRedirect = "rabbigerzi.com"; - }; - sops.secrets."rabbi-gerzi-env" = { sopsFile = ./secrets/rabbi-gerzi.env; format = "dotenv";