From 66bce535181a927c3a3f3a2ed445fa390a3b25d9 Mon Sep 17 00:00:00 2001 From: chk <79915315+ChKendel@users.noreply.github.com> Date: Mon, 9 Mar 2026 20:22:16 +0100 Subject: [PATCH] GCode Feld --- server/config/config.js | 8 +++----- web/index.html | 12 ++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/server/config/config.js b/server/config/config.js index 4e7a35d..3761fc2 100644 --- a/server/config/config.js +++ b/server/config/config.js @@ -1,13 +1,11 @@ module.exports = { - fluidnc: { - host: "fluidncred.local", - port: 80, + host: process.env.FluidNcHost || "fluidncred.local", + port: Number(process.env.FluidNcPort) || 80, reconnectDelay: 30000 }, server: { - port: 3000 + port: Number(process.env.PORT) || 3000 } - }; \ No newline at end of file diff --git a/web/index.html b/web/index.html index e532c5f..ae2a44d 100644 --- a/web/index.html +++ b/web/index.html @@ -69,6 +69,10 @@ +