From 4f719e292ae98706997517853fc8f2d6f68330f7 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Mon, 7 Feb 2022 22:10:01 +0100 Subject: [PATCH] Redirect old to new --- nginx.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.nix b/nginx.nix index 3892f23..65acc9f 100644 --- a/nginx.nix +++ b/nginx.nix @@ -7,6 +7,13 @@ recommendedGzipSettings = true; recommendedOptimisation = true; recommendedTlsSettings = true; + virtualHosts."statistik.hamburg.freifunk.net" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + rewrite ^/(.*)$ https://stats.hamburg.freifunk.net/ redirect; + ''; + }; virtualHosts."stats.hamburg.freifunk.net" = { default = true; enableACME = true;