Monitor nginx via Prometheus

This commit is contained in:
2023-04-18 21:18:38 +02:00
parent 841ee6758d
commit 80259e6afd
2 changed files with 19 additions and 7 deletions

View File

@@ -49,12 +49,6 @@
add_header Access-Control-Allow-Origin * always;
'';
};
"/nginx_status/".extraConfig = ''
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
'';
};
};
"radicale.coolneng.duckdns.org" = {
@@ -164,6 +158,18 @@
proxyWebsockets = true;
};
};
"/nginx_status/" = {
listen = [{
addr = "127.0.0.1";
port = 8282;
}];
extraConfig = ''
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
'';
};
};
};