all: enable metrics from caddy
This commit is contained in:
parent
1b054616a3
commit
e12e49168a
2 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,9 @@
|
|||
email = "admin@acomputer.lol";
|
||||
globalConfig = ''
|
||||
acme_dns digitalocean {env.DO_API_TOKEN}
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
'';
|
||||
logFormat = "level INFO";
|
||||
};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
caddy = {
|
||||
virtualHosts."${config.networking.hostName}.labs.adtya.xyz" = {
|
||||
extraConfig = ''
|
||||
metrics /caddy-metrics
|
||||
handle /metrics {
|
||||
reverse_proxy 127.0.0.1:9100
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue