From 10252c50e7f4887a081389113820a57aa4b97cbb Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 16 Apr 2024 21:47:37 +0200 Subject: [PATCH] heimdall: Use default method of TLS certificate handling --- machines/heimdall/configuration.nix | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/machines/heimdall/configuration.nix b/machines/heimdall/configuration.nix index 3ecdcf6..6a41253 100644 --- a/machines/heimdall/configuration.nix +++ b/machines/heimdall/configuration.nix @@ -1,10 +1,5 @@ { self, ... }@inputs: -{ - pkgs, - modulesPath, - lib, - ... -}: +{ modulesPath, lib, ... }: # let # pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux; # in @@ -21,18 +16,6 @@ enable = true; server = true; }; - - caddy-proxy = { - enable = true; - package = inputs.caddy-with-plugins.packages.${pkgs.system}.caddy-with-cloudflare; - proxyHosts = [ - { - externalHostname = "git.datarift.nl"; - proxyAddress = "gitea.barn-beaver.ts.net:3000"; - external = true; - } - ]; - }; headscale = { enable = false; baseDomain = "asgard.datarift.nl"; @@ -154,6 +137,11 @@ } ''; }; + "git.datarift.nl" = { + extraConfig = '' + reverse_proxy gitea.barn-beaver.ts.net:3000 + ''; + }; }; }; };