Missing Files

This commit is contained in:
2025-04-11 18:40:29 +02:00
parent 27fda231ea
commit 02e8a102d3
4 changed files with 5 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules COPY --from=install /temp/prod/node_modules node_modules
COPY --from=prerelease /usr/src/app/mqtt.js . COPY --from=prerelease /usr/src/app/mqtt.js .
COPY --from=prerelease /usr/src/app/package.json . COPY --from=prerelease /usr/src/app/package.json .
COPY --from=prerelease /usr/src/app/index.html .
# run the app # run the app
USER bun USER bun

View File

@@ -6,7 +6,7 @@ const config = {
whitelist_url: "https://laber", whitelist_url: "https://laber",
whitelist_enabled: false, whitelist_enabled: false,
webport: 8000, webport: 8000,
webbind:"127.0.0.1" webbind:"0.0.0.0"
}; };
module.exports = config; module.exports = config;

View File

@@ -5,7 +5,7 @@ services:
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
container_name: liveqso container_name: liveqso
ports: ports:
- 8000:8000 # Exposed port - see WEBPORT above - 8098:8000 # Exposed port - see WEBPORT above
volumes: volumes:
- ./config.js:/usr/src/app/config.js - ./config.js:/usr/src/app/config.js:U
restart: unless-stopped restart: unless-stopped

View File

@@ -116,7 +116,7 @@ const dinmin = (timestamp) => {
function startup() { function startup() {
getWhitelist(); 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 console.log(`Socket.IO server running at http://${config.webbind}:${config.webport}`); // debug
}); });
const intervalID = setInterval(getWhitelist,5*60*1000); const intervalID = setInterval(getWhitelist,5*60*1000);