security: bind aquamarine metrics exporters to loopback

This commit is contained in:
Ryan Yin committed 2026-08-26 18:14:43 +08:00
1 parent 36c29a8371
commit be6e2b4110
5 files changed
+27 -3

No files matched your search

@@ -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;
}