Enable prometheus alertmanager

This commit is contained in:
fi 2025-05-10 00:10:09 +02:00
parent fa0c4cabcc
commit 50cd2305c4
3 changed files with 26 additions and 0 deletions

View file

@ -22,6 +22,25 @@
proxyWebsockets = true;
};
};
"alertmanager.grzb.de"= {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations."/" = {
proxyPass = "http://${config.services.prometheus.alertmanager.listenAddress}:${builtins.toString config.services.prometheus.alertmanager.port}";
proxyWebsockets = true;
};
};
};
};
}