From 02e8a102d3e30b8922970e0e9976dc2beabc697d Mon Sep 17 00:00:00 2001 From: Joerg Date: Fri, 11 Apr 2025 18:40:29 +0200 Subject: [PATCH] Missing Files --- Dockerfile | 1 + config.js.sample | 2 +- docker-compose.yaml | 4 ++-- mqtt.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b6d5d1..5a68b0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ FROM base AS release COPY --from=install /temp/prod/node_modules node_modules COPY --from=prerelease /usr/src/app/mqtt.js . COPY --from=prerelease /usr/src/app/package.json . +COPY --from=prerelease /usr/src/app/index.html . # run the app USER bun diff --git a/config.js.sample b/config.js.sample index 88002c3..889c585 100644 --- a/config.js.sample +++ b/config.js.sample @@ -6,7 +6,7 @@ const config = { whitelist_url: "https://laber", whitelist_enabled: false, webport: 8000, - webbind:"127.0.0.1" + webbind:"0.0.0.0" }; module.exports = config; diff --git a/docker-compose.yaml b/docker-compose.yaml index e9cefe1..600a6d7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,7 @@ services: dockerfile: ./Dockerfile container_name: liveqso ports: - - 8000:8000 # Exposed port - see WEBPORT above + - 8098:8000 # Exposed port - see WEBPORT above volumes: - - ./config.js:/usr/src/app/config.js + - ./config.js:/usr/src/app/config.js:U restart: unless-stopped diff --git a/mqtt.js b/mqtt.js index ecabd36..a642934 100755 --- a/mqtt.js +++ b/mqtt.js @@ -116,7 +116,7 @@ const dinmin = (timestamp) => { function startup() { getWhitelist(); - http.listen(config.webport,'127.0.0.1', () => { // Webserver starten + http.listen(config.webport,config.webbind, () => { // Webserver starten console.log(`Socket.IO server running at http://${config.webbind}:${config.webport}`); // debug }); const intervalID = setInterval(getWhitelist,5*60*1000);