mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-01 02:13:58 +01:00
security: bind aquamarine metrics exporters to loopback
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user