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;