mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-27 21:43:57 +02:00
security: bind aquamarine metrics exporters to loopback
This commit is contained in:
@@ -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