fix(forgejo): move dashboard config to proxy section

This commit is contained in:
Michael Thomas 2024-05-09 11:14:53 -04:00
parent 6f29e619bf
commit 1ecaac36e4

View File

@ -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}
'';
})
];
}