From fdd6fae02e0b1b64b5c1d5c401b8e38f6096da78 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Sun, 29 Jun 2025 11:26:40 -0400 Subject: [PATCH] feature: configured caddy [deploy] --- configurations/nixos/caddy-tofu/default.nix | 21 +++++++++++++++++++-- hosts.json | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/configurations/nixos/caddy-tofu/default.nix b/configurations/nixos/caddy-tofu/default.nix index 862e737..3beb1d2 100644 --- a/configurations/nixos/caddy-tofu/default.nix +++ b/configurations/nixos/caddy-tofu/default.nix @@ -14,8 +14,25 @@ in self.nixosModules.default "${modulesPath}/virtualisation/lxc-container.nix" ]; - deploy = { - enable = false; + services.caddy = { + enable = true; + extraConfig = '' + git.skdevstudios.com { + reverse_proxy forgejo.local:3000 + } + tofu.skdevstudios.com { + reverse_proxy tofu.local:9000 + } + # :3306 { + # reverse_proxy 10.173.91.154:3306 + # } + # :3001 { + # reverse_proxy 127.0.0.1:8889 + # } + # :8096 { + # reverse_proxy 10.173.91.220:8096 + # } + ''; }; networking = { hostName = "caddy-tofu"; diff --git a/hosts.json b/hosts.json index 9c1fb86..f0bccd7 100644 --- a/hosts.json +++ b/hosts.json @@ -1,6 +1,7 @@ { "arma-reforger-tofu": "201:d105:e4c4:3a59:f0b8:9867:49f6:597c", "base-tofu": "200:9685:b84:5b8e:2179:f171:cef9:a415", + "caddy-tofu": "200:5fe8:7cf4:ea67:dcd8:6237:8382:5e97", "forgejo-runner-tofu": "201:ea26:66c7:657b:3599:63a6:c66c:d388", "link-warden-tofu": "200:7e25:554c:6df3:2c5:2de:6f9f:a96d", "medchart-tofu": "200:67d4:8493:35c9:ac0f:ec86:c3ea:9b11",