feat(services): add pangolin proxy configuration

This commit is contained in:
tux
2026-08-09 19:00:26 +05:30
parent b060e4ccb6
commit 7a9ad6fd6c
5 changed files with 146 additions and 13 deletions

View File

@@ -38,6 +38,12 @@
default = false;
description = "Whether to configure Nginx as a reverse proxy for Uptime Kuma";
};
configurePangolin = mkOption {
type = types.bool;
default = false;
description = "Whether to configure Pangolin as a reverse proxy for Uptime Kuma";
};
};
config = mkIf cfg.enable {
@@ -65,6 +71,31 @@
proxyWebsockets = true;
};
};
newt.blueprint.proxy-resources = mkIf cfg.configurePangolin {
uptime-kuma = {
auth = {
sso-enabled = false;
};
full-domain = cfg.domain;
name = "uptime-kuma";
protocol = "http";
targets = [
{
hostname = "localhost";
method = "http";
port = cfg.port;
healthcheck = {
hostname = "localhost";
port = cfg.port;
scheme = "http";
method = "GET";
path = "/";
};
}
];
};
};
};
};
};