mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
api/core: bind on localhost
This commit is contained in:
parent
0e8c527982
commit
77c4e134c7
@ -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`);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user