Merge branch 'nginx-monitoring' into 'main'

fix: monitoring nginx

See merge request nounous/nixos!92
merge-requests/92/merge
Pyjacpp 2026-09-21 19:02:44 +02:00
commit 660cdcc25e
1 changed files with 15 additions and 0 deletions

View File

@ -14,5 +14,20 @@
set_real_ip_from fd00::/56;
real_ip_header X-Real-Ip;
'';
virtualHosts.nginx-stub-status = lib.mkIf config.crans.monitoring.enable {
listen = [
{
addr = "[::1]";
port = 6424;
ssl = false;
}
];
locations."/stub_status" = {
extraConfig = ''
stub_status;
'';
};
};
};
}