refactor: modify httpd to expose public endpoints on being set public gateway
Some checks failed
ci / treefmt (push) Failing after 5m0s

This commit is contained in:
Ceferino Patino 2026-05-31 12:34:09 -05:00
commit a889dbc0f8
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI
2 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ in {
};
};
gateways = ["shiori"];
network-services = {
arisu = {
jellyfin = {

View file

@ -211,13 +211,13 @@ in {
svc)
|> listToAttrs)
(mkIf networkingCfg.cloudflared.enable (
(mkIf (builtins.elem hostName networkingCfg.gateways) (
networkServicesFlat
|> filterAttrs (_: svc: svc.public)
|> mapAttrsToList (name: svc:
(mkVirtualHost {
domain = "*.cpatino.com";
useSSL = false;
useSSL = true;
injectHoneypot = true;
})
svc.host