From edb4ec77caf8d2187b087dfaa562d12e00a66356 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 16 Jul 2023 03:34:03 +0000 Subject: [PATCH] set caddy prometheus port dynamically --- modules/nixos/services/prometheus.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/prometheus.nix b/modules/nixos/services/prometheus.nix index fa026bd..c477fd2 100644 --- a/modules/nixos/services/prometheus.nix +++ b/modules/nixos/services/prometheus.nix @@ -82,7 +82,8 @@ match = [{ host = [ config.hostnames.prometheus ]; }]; handle = [{ handler = "reverse_proxy"; - upstreams = [{ dial = "localhost:9090"; }]; + upstreams = + [{ dial = "localhost:${config.services.prometheus.port}"; }]; }]; }];