aboutsummaryrefslogtreecommitdiff
path: root/tharos/caddy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tharos/caddy.nix')
-rw-r--r--tharos/caddy.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/tharos/caddy.nix b/tharos/caddy.nix
index fc152c7..f6b0fcf 100644
--- a/tharos/caddy.nix
+++ b/tharos/caddy.nix
@@ -13,7 +13,22 @@
services.caddy = {
enable = true;
email = "redaktion@${self.domain}";
+ globalConfig = ''
+ metrics {
+ per_host
+ }
+ '';
};
+ services.prometheus.scrapeConfigs = [
+ {
+ job_name = "caddy";
+ static_configs = [
+ {
+ targets = [ "localhost:2019" ];
+ }
+ ];
+ }
+ ];
};
vm =