1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-07-05 13:50:13 +00:00

set caddy prometheus port dynamically

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

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