api/core: bind on localhost

This commit is contained in:
hyperdefined 2025-06-01 21:29:52 -04:00
parent 0e8c527982
commit 77c4e134c7
No known key found for this signature in database
GPG Key ID: 38C93C4835071D4A

View File

@ -396,7 +396,7 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
res.set('Content-Type', registry.contentType);
res.send(await registry.metrics());
});
metricsApp.listen(env.metricsPort, () => {
metricsApp.listen(env.metricsPort, '127.0.0.1', () => {
console.log(`${Green('[✓]')} prometheus metrics running on 127.0.0.1:${env.metricsPort}/metrics`);
});