set caddy prometheus port dynamically

This commit is contained in:
Noah Masur 2023-07-16 03:34:03 +00:00
parent 3cc264a857
commit edb4ec77ca

View File

@ -82,7 +82,8 @@
match = [{ host = [ config.hostnames.prometheus ]; }];
handle = [{
handler = "reverse_proxy";
upstreams = [{ dial = "localhost:9090"; }];
upstreams =
[{ dial = "localhost:${config.services.prometheus.port}"; }];
}];
}];