From ee2ab3ae0db37164c139931019cff11e0c5fb924 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Thu, 19 Dec 2024 17:23:02 -0600 Subject: [PATCH] redirect from tfb.beepboop.systems to marching.beepboop.systems --- boxes/netbox/nginx.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boxes/netbox/nginx.nix b/boxes/netbox/nginx.nix index bb1740f..917bdc2 100644 --- a/boxes/netbox/nginx.nix +++ b/boxes/netbox/nginx.nix @@ -17,6 +17,19 @@ }; services.nginx.virtualHosts."tfb.beepboop.systems" = { + forceSSL = true; + enableACME = true; + locations."/" = { + extraConfig = '' + return 301 https://marching.beepboop.systems; + ''; + }; + locations."/groupme" = { + proxyPass = "http://10.100.0.2:7439"; + }; + }; + + services.nginx.virtualHosts."marching.beepboop.systems" = { forceSSL = true; enableACME = true; root = "/var/www/tfb.beepboop.systems";