mirror of https://gitlab.crans.org/nounous/nixos
fix: monitoring nginx
parent
35bbafb0b1
commit
63b308b8d9
|
|
@ -14,5 +14,20 @@
|
||||||
set_real_ip_from fd00::/56;
|
set_real_ip_from fd00::/56;
|
||||||
real_ip_header X-Real-Ip;
|
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;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue