stats: simplify code
This commit is contained in:
parent
1f169a9772
commit
2b9d49fe91
|
@ -78,9 +78,9 @@ in
|
||||||
(lib.mkIf (pkgs.system != "riscv64-linux") {
|
(lib.mkIf (pkgs.system != "riscv64-linux") {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."_" = {
|
virtualHosts."_" = {
|
||||||
listen = let port = 9100; in [
|
listen = [
|
||||||
{ addr = "0.0.0.0"; inherit port; }
|
{ addr = "0.0.0.0"; port = nginxStatusPort; }
|
||||||
{ addr = "[::]"; inherit port; }
|
{ addr = "[::]"; port = nginxStatusPort; }
|
||||||
];
|
];
|
||||||
locations."/metrics" = {
|
locations."/metrics" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.exporters.node.port}/metrics";
|
proxyPass = "http://127.0.0.1:${toString config.services.prometheus.exporters.node.port}/metrics";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user