From 233ffdd769b718ec977424d7edc9abc55a4d9c4d Mon Sep 17 00:00:00 2001 From: schweby Date: Thu, 18 Mar 2021 19:12:14 +0100 Subject: [PATCH] hainich/nginx: redirect hacc.space to hacc.earth redirect was previously managed on libocerus hacc.space now points to hainich --- hosts/hainich/services/nginx.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/hainich/services/nginx.nix b/hosts/hainich/services/nginx.nix index 4dc2f53..56cf029 100644 --- a/hosts/hainich/services/nginx.nix +++ b/hosts/hainich/services/nginx.nix @@ -17,6 +17,11 @@ default = true; locations."/".return = "404"; }; + "hacc.space" = { + enableACME = true; + forceSSL = true; + locations."/".return = "301 https://hacc.earth"; + }; }; networking.firewall.allowedTCPPorts = [ 1935 ];