From 1ecaac36e497e9ab558d26938876e300ff65e460 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 9 May 2024 11:14:53 -0400 Subject: [PATCH] fix(forgejo): move dashboard config to proxy section --- modules/services/forgejo/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/services/forgejo/default.nix b/modules/services/forgejo/default.nix index d05beed..70483be 100644 --- a/modules/services/forgejo/default.nix +++ b/modules/services/forgejo/default.nix @@ -52,6 +52,11 @@ in { }; networking.firewall.interfaces."${firewallInterface}".allowedTCPPorts = [cfg.port]; + }) + (mkIf cfg.proxy { + services.caddy.virtualHosts."${forgejoDomain}".extraConfig = '' + reverse_proxy http://${proxyIP}:${toString cfg.port} + ''; webapps.dashboardCategories = [ { @@ -68,10 +73,5 @@ in { description = "Beyond coding. We forge."; }; }) - (mkIf cfg.proxy { - services.caddy.virtualHosts."${forgejoDomain}".extraConfig = '' - reverse_proxy http://${proxyIP}:${toString cfg.port} - ''; - }) ]; }