Fix caddy metrics endpoint
Some checks failed
Run nix flake check / flake-check (push) Failing after 10m38s

This commit is contained in:
Torjus Håkestad 2024-12-04 04:09:06 +01:00
parent 5af18ca418
commit 4c60f7b5c1
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4
2 changed files with 7 additions and 4 deletions

View File

@ -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
}
''; '';
}; };
} }

View File

@ -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" ];
} }
]; ];
} }