2024-07-16 22:59:07 +05:30
|
|
|
_: {
|
2024-07-17 11:18:33 +05:30
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts."prometheus.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 127.0.0.1:9090
|
|
|
|
tls /persist/secrets/caddy/certs/prometheus.crt /persist/secrets/caddy/certs/prometheus.key
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
prometheus = {
|
|
|
|
enable = true;
|
|
|
|
listenAddress = "127.0.0.1";
|
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "frp";
|
|
|
|
scheme = "https";
|
|
|
|
static_configs = [
|
|
|
|
{ targets = [ "frp.labs.adtya.xyz" ]; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "blocky";
|
|
|
|
static_configs = [
|
|
|
|
{ targets = [ "10.10.10.10:8080" ]; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-16 22:59:07 +05:30
|
|
|
};
|
|
|
|
}
|