Updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Optional agent-style HTTP API bound to the PearMonitor agent.
|
||||
*
|
||||
* Default: 127.0.0.1:19999 — local only.
|
||||
* Default: 127.0.0.1:18888 — local only.
|
||||
* Disable with PEARDATA_REST=0
|
||||
*/
|
||||
import http from 'http'
|
||||
@@ -21,7 +21,7 @@ export function startRestServer() {
|
||||
}
|
||||
|
||||
const host = process.env.PEARDATA_REST_HOST || '127.0.0.1'
|
||||
const port = Number(process.env.PEARDATA_REST_PORT) || 19999
|
||||
const port = Number(process.env.PEARDATA_REST_PORT) || 18888
|
||||
|
||||
const server = http.createServer(async (req, res) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user