aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ng
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:44:34 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:50:30 +0200
commit87b3a4bd7f0367550b2bf27280d6902ae15aef72 (patch)
tree3268a6cb6d4c147376bff93e18be16861ad3f16f /modules/by-name/ng
parentmodules/monitoring/{prometheus,scrutiny}: Move smartctl exporting to scrutiny (diff)
downloadnixos-server-87b3a4bd7f0367550b2bf27280d6902ae15aef72.zip
modules/nginx: Enable status page for prometheus exporter
Diffstat (limited to 'modules/by-name/ng')
-rw-r--r--modules/by-name/ng/nginx/module.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/by-name/ng/nginx/module.nix b/modules/by-name/ng/nginx/module.nix
index 734a2d2..096c09a 100644
--- a/modules/by-name/ng/nginx/module.nix
+++ b/modules/by-name/ng/nginx/module.nix
@@ -86,6 +86,10 @@ in {
};
services.nginx = {
enable = true;
+
+ # Enable the status page for the prometheus exporter.
+ statusPage = lib.mkIf config.services.prometheus.enable true;
+
virtualHosts = redirects;
};
};