security: bind aquamarine metrics exporters to loopback

This commit is contained in:
Ryan Yin
2026-08-26 18:14:43 +08:00
parent 36c29a8371
commit be6e2b4110
5 changed files with 27 additions and 3 deletions
@@ -0,0 +1,9 @@
{
lib,
outputs,
}:
{
v2rayExporter = "127.0.0.1";
pgExporter = "127.0.0.1";
sftpgoTelemetry = "127.0.0.1";
}
@@ -0,0 +1,12 @@
{
lib,
outputs,
}:
let
aqua = outputs.nixosConfigurations.aquamarine.config;
in
{
v2rayExporter = aqua.services.prometheus.exporters.v2ray.listenAddress;
pgExporter = aqua.services.prometheus.exporters.postgres.listenAddress;
sftpgoTelemetry = aqua.services.sftpgo.settings.telemetry.bind_address;
}