stats: simplify code

This commit is contained in:
Sandro - 2023-09-03 22:46:01 +02:00
parent 1f169a9772
commit 2b9d49fe91
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 3 deletions

View File

@ -78,9 +78,9 @@ in
(lib.mkIf (pkgs.system != "riscv64-linux") {
enable = true;
virtualHosts."_" = {
listen = let port = 9100; in [
{ addr = "0.0.0.0"; inherit port; }
{ addr = "[::]"; inherit port; }
listen = [
{ addr = "0.0.0.0"; port = nginxStatusPort; }
{ addr = "[::]"; port = nginxStatusPort; }
];
locations."/metrics" = {
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.exporters.node.port}/metrics";