Fix caddy metrics endpoint
Some checks failed
Run nix flake check / flake-check (push) Failing after 10m38s
Some checks failed
Run nix flake check / flake-check (push) Failing after 10m38s
This commit is contained in:
parent
5af18ca418
commit
4c60f7b5c1
@ -5,9 +5,6 @@
|
|||||||
configFile = pkgs.writeText "Caddyfile" ''
|
configFile = pkgs.writeText "Caddyfile" ''
|
||||||
{
|
{
|
||||||
acme_ca https://ca.home.2rjus.net/acme/acme/directory
|
acme_ca https://ca.home.2rjus.net/acme/acme/directory
|
||||||
servers {
|
|
||||||
metrics
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nzbget.home.2rjus.net {
|
nzbget.home.2rjus.net {
|
||||||
@ -42,6 +39,12 @@
|
|||||||
}
|
}
|
||||||
reverse_proxy http://ha1.home.2rjus.net:8080
|
reverse_proxy http://ha1.home.2rjus.net:8080
|
||||||
}
|
}
|
||||||
|
http://http-proxy.home.2rjus.net/metrics {
|
||||||
|
log {
|
||||||
|
output file /var/log/caddy/caddy-metrics.log
|
||||||
|
}
|
||||||
|
metrics
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
job_name = "caddy";
|
job_name = "caddy";
|
||||||
static_configs = [
|
static_configs = [
|
||||||
{
|
{
|
||||||
targets = [ "http-proxy.home.2rjus.net:2019" ];
|
targets = [ "http-proxy.home.2rjus.net" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user