From 243f11fa3776bae192d9b2c8cbc82ffd5a0e235d Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Tue, 18 Jan 2022 00:45:59 +0000 Subject: [PATCH] Use Nix to find VPN network IP Thanks to @jcalderone for the suggestion! --- nixos/modules/monitoring/server/grafana.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/monitoring/server/grafana.nix b/nixos/modules/monitoring/server/grafana.nix index 1306c37f..0923885f 100644 --- a/nixos/modules/monitoring/server/grafana.nix +++ b/nixos/modules/monitoring/server/grafana.nix @@ -187,7 +187,7 @@ in { # Only allow our monitoringvpn subnet # And localhost since we're the monitoring server currently extraConfig = '' - allow 172.23.23.0/24; + allow ${config.grid.monitoringvpnIPv4}/24; allow 127.0.0.1; allow ::1; deny all; -- GitLab