From 3f3fb0fc192fc8f4e7ee0d744b8405760319e5af Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 14 Aug 2022 12:25:13 +0200 Subject: [PATCH] Add redirect from www. to bula22.de --- hosts/web-2/bula22.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/web-2/bula22.nix b/hosts/web-2/bula22.nix index f018484..17a14f8 100644 --- a/hosts/web-2/bula22.nix +++ b/hosts/web-2/bula22.nix @@ -2,6 +2,13 @@ { services.nginx.virtualHosts = { + "www.bula22.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://bula22.de$request_uri"; + }; + }; "bula22.de" = { enableACME = true; forceSSL = true;