mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
set caddy prometheus port dynamically
This commit is contained in:
parent
3cc264a857
commit
edb4ec77ca
@ -82,7 +82,8 @@
|
|||||||
match = [{ host = [ config.hostnames.prometheus ]; }];
|
match = [{ host = [ config.hostnames.prometheus ]; }];
|
||||||
handle = [{
|
handle = [{
|
||||||
handler = "reverse_proxy";
|
handler = "reverse_proxy";
|
||||||
upstreams = [{ dial = "localhost:9090"; }];
|
upstreams =
|
||||||
|
[{ dial = "localhost:${config.services.prometheus.port}"; }];
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user