From 3b928c671269a574260ab012f4b9aa8e2a216618 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 15 Apr 2021 14:00:46 +0200 Subject: [PATCH] redirect pad.hacc.earth to pad.hacc.space this should redirect visitors to pad.hacc.earth back to pad.hacc.space. (this was requested in the matrix room, to make it easier to communicate to people that pads moved yet again). --- hosts/hainich/services/codimd.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/hainich/services/codimd.nix b/hosts/hainich/services/codimd.nix index b4ea6ba..7985821 100644 --- a/hosts/hainich/services/codimd.nix +++ b/hosts/hainich/services/codimd.nix @@ -82,4 +82,10 @@ ''; }; }; + + services.nginx.virtualHosts."pad.hacc.earth" = { + forceSSL = true; + enableACME = true; + locations."/".return = "301 https://pac.hacc.space$request_uri"; + }; }