From 3b923a51f486b4c6357e6d5cd566aab172d2b7b3 Mon Sep 17 00:00:00 2001 From: catvayor Date: Thu, 11 Jul 2024 11:53:14 +0200 Subject: [PATCH] got traque.dgnum.eu --- machines/kat-manah/default.nix | 5 +++++ machines/kat-traque/default.nix | 7 +++++++ machines/kat-watcher/default.nix | 1 + 3 files changed, 13 insertions(+) diff --git a/machines/kat-manah/default.nix b/machines/kat-manah/default.nix index 244ea2e..06de45e 100644 --- a/machines/kat-manah/default.nix +++ b/machines/kat-manah/default.nix @@ -10,6 +10,7 @@ ./hardware-configuration.nix ]; + boot.kernel.sysctl."net.ipv4.ip_forward" = true; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.supportedFilesystems = [ "bcachefs" ]; @@ -69,6 +70,10 @@ vm = "192.168.122.3"; sshport = 22002; }; + "traque.dgnum.eu" = { + vm = "192.168.122.4"; + sshport = null; + }; "traque.katvayor.net" = { vm = "192.168.122.4"; sshport = 22001; diff --git a/machines/kat-traque/default.nix b/machines/kat-traque/default.nix index 0da3b14..8927cbe 100644 --- a/machines/kat-traque/default.nix +++ b/machines/kat-traque/default.nix @@ -90,6 +90,13 @@ in enable = true; virtualHosts = { "traque.katvayor.net" = { + enableACME = true; + addSSL = true; + locations."/".extraConfig = '' + return 301 https://traque.dgnum.eu$request_uri; + ''; + }; + "traque.dgnum.eu" = { enableACME = true; addSSL = true; locations = { diff --git a/machines/kat-watcher/default.nix b/machines/kat-watcher/default.nix index 2228059..260151a 100644 --- a/machines/kat-watcher/default.nix +++ b/machines/kat-watcher/default.nix @@ -65,6 +65,7 @@ "manah.katvayor.net" = null; "degette.katvayor.net" = 22000; "traque.katvayor.net" = 22001; + "traque.dgnum.eu" = null; "betamail.katvayor.net" = 22002; "test.traque.katvayor.net" = null; "son.katvayor.net" = null;