Use config for Athena port and host
parent
bf462356be
commit
33e7285236
|
@ -150,10 +150,10 @@ lockfile.lock('retropilot_server.lock', {realpath: false, stale: 30000, update:
|
||||||
|
|
||||||
|
|
||||||
httpServer.listen(config.httpPort, config.httpInterface, () => {
|
httpServer.listen(config.httpPort, config.httpInterface, () => {
|
||||||
logger.info(`Retropilot Server listening at http://` + config.httpInterface + `:` + config.httpPort)
|
logger.info(`Retropilot Server listening at http://${config.httpInterface}:${config.httpPort}`)
|
||||||
});
|
});
|
||||||
httpsServer.listen(config.httpsPort, config.httpsInterface, () => {
|
httpsServer.listen(config.httpsPort, config.httpsInterface, () => {
|
||||||
logger.info(`Retropilot Server listening at https://` + config.httpsInterface + `:` + config.httpsPort)
|
logger.info(`Retropilot Server listening at https://${config.httpsInterface}:${config.httpsPort}`)
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -27,7 +27,7 @@ function __server() {
|
||||||
wss = new WebSocket.WebSocketServer({ server }, { path: '/realtime/v1', handshakeTimeout: 500 });
|
wss = new WebSocket.WebSocketServer({ server }, { path: '/realtime/v1', handshakeTimeout: 500 });
|
||||||
|
|
||||||
|
|
||||||
server.listen(81, () => {
|
server.listen(config.athena.port, config.athena.host, () => {
|
||||||
logger.info(`Web(Server) - UP @ ${config.athena.host}:${config.athena.port}`)
|
logger.info(`Web(Server) - UP @ ${config.athena.host}:${config.athena.port}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue