aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name
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
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 '')
-rw-r--r--modules/by-name/mo/monitoring/components/scrutiny.nix1
-rw-r--r--modules/by-name/ng/nginx/module.nix4
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/by-name/mo/monitoring/components/scrutiny.nix b/modules/by-name/mo/monitoring/components/scrutiny.nix
index 70d413a..706a7c6 100644
--- a/modules/by-name/mo/monitoring/components/scrutiny.nix
+++ b/modules/by-name/mo/monitoring/components/scrutiny.nix
@@ -80,7 +80,6 @@ in {
};
};
- # nginx.statusPage = lib.mkDefault config.services.nginx.enable;
nginx = lib.mkIf (cfg.fqdn != null) {
virtualHosts."${cfg.fqdn}" = {
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.scrutiny.settings.web.listen.port}";
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;
};
};