stats: simplify code
This commit is contained in:
parent
1f169a9772
commit
2b9d49fe91
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue