This commit is contained in:
ChK
2026-04-03 22:57:17 +02:00
parent 71d04271db
commit 8ea33bd8df
4 changed files with 1645 additions and 62 deletions

View File

@@ -148,8 +148,10 @@ console.log("Works with FluidNc Base");
const port = Number(process.env.PORT);
const listenPort = Number.isInteger(port) ? port : 2095;
console.log("Starting server on port: " + listenPort.toString());
server.listen(listenPort);
console.log("Listen on Port: https://localhost:" + port.toString()+ "/")
console.log("Listen on Port: https://localhost:" + listenPort.toString()+ "/")
@@ -197,7 +199,8 @@ const infoServer = https.createServer(httpsOptions, (req, res) => {
const InfPort = Number(process.env.PORT);
const listenInfoPort = Number.isInteger(InfPort) ? InfPort : 2095;
const listenInfoPort = Number.isInteger(InfPort) ? InfPort : 2098;
console.log("Starting info server on port: " + listenInfoPort.toString());
infoServer.listen(listenInfoPort);
console.log("Info server listening on https://localhost:"+ listenInfoPort.toString() + "/");