From b09425cee7146c9cf4f3919adfc26a5a5b82c234 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 26 Jul 2024 00:20:34 -0400 Subject: [PATCH] Infini-DL360: add jump link domain --- hosts/Infini-DL360/web.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/Infini-DL360/web.nix b/hosts/Infini-DL360/web.nix index b92e572..5e14eec 100644 --- a/hosts/Infini-DL360/web.nix +++ b/hosts/Infini-DL360/web.nix @@ -35,7 +35,20 @@ let }; in { + services.nginx.commonHttpConfig = '' + map $request_uri $jump_link { + default "https://inx.moe"; + volatile; + include /srv/web/jump.map; + } + ''; + services.nginx.virtualHosts = websites // redirects // { + "j.inx.moe" = ssl-optional // { + locations."/" = { + return = "302 $jump_link"; + }; + }; "blahaj.inx.moe" = ssl-optional // { locations."/" = { tryFiles = "/Blahaj.png =404";