fix(forgejo): move dashboard config to proxy section
This commit is contained in:
parent
6f29e619bf
commit
1ecaac36e4
@ -52,6 +52,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces."${firewallInterface}".allowedTCPPorts = [cfg.port];
|
networking.firewall.interfaces."${firewallInterface}".allowedTCPPorts = [cfg.port];
|
||||||
|
})
|
||||||
|
(mkIf cfg.proxy {
|
||||||
|
services.caddy.virtualHosts."${forgejoDomain}".extraConfig = ''
|
||||||
|
reverse_proxy http://${proxyIP}:${toString cfg.port}
|
||||||
|
'';
|
||||||
|
|
||||||
webapps.dashboardCategories = [
|
webapps.dashboardCategories = [
|
||||||
{
|
{
|
||||||
@ -68,10 +73,5 @@ in {
|
|||||||
description = "Beyond coding. We forge.";
|
description = "Beyond coding. We forge.";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(mkIf cfg.proxy {
|
|
||||||
services.caddy.virtualHosts."${forgejoDomain}".extraConfig = ''
|
|
||||||
reverse_proxy http://${proxyIP}:${toString cfg.port}
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user