From bda4bcfbe4809335a0debe1a21b3fbabe6735e87 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 9 Dec 2019 15:06:08 +1000 Subject: [PATCH] Add redirections for old domains --- roles/gitea.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/gitea.nix b/roles/gitea.nix index f97deca..28eece3 100644 --- a/roles/gitea.nix +++ b/roles/gitea.nix @@ -56,6 +56,12 @@ forceSSL = true; # Force SSL locations."/".proxyPass = "http://localhost:3001/"; # Proxy Gitea }; + virtualHosts."git.mcwhirter.io" = { # Hostname to be redirected + globalRedirect = "source.mcwhirter.io"; # Redirect permanently to the host + }; + virtualHosts."code.mcwhirter.io" = { # Hostname to be redirected + globalRedirect = "source.mcwhirter.io"; # Redirect permanently to the host + }; }; security.acme.certs = {