mirror of
https://github.com/kmein/niveum
synced 2026-03-21 04:11:07 +01:00
feat(prometheus): make reachable via http
This commit is contained in:
@@ -30,11 +30,20 @@ in {
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
${lib.removePrefix "http://" config.services.prometheus.webExternalUrl} = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.prometheus.webExternalUrl = "http://prometheus.kmein.r";
|
||||||
|
|
||||||
niveum.passport.services = [
|
niveum.passport.services = [
|
||||||
{
|
{
|
||||||
title = "Prometheus";
|
title = "Prometheus";
|
||||||
|
link = config.services.prometheus.webExternalUrl;
|
||||||
description = "collects metrics from devices in the <i>niveum</i> network, blackbox monitors some websites.";
|
description = "collects metrics from devices in the <i>niveum</i> network, blackbox monitors some websites.";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user