Missing Files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
2
mqtt.js
2
mqtt.js
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user