Use config for Athena port and host

pull/4/head
Cameron Clough 2022-01-06 13:39:17 +00:00
parent bf462356be
commit 33e7285236
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
2 changed files with 3 additions and 3 deletions

View File

@ -150,10 +150,10 @@ lockfile.lock('retropilot_server.lock', {realpath: false, stale: 30000, update:
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, () => {
logger.info(`Retropilot Server listening at https://` + config.httpsInterface + `:` + config.httpsPort)
logger.info(`Retropilot Server listening at https://${config.httpsInterface}:${config.httpsPort}`)
});
})();

View File

@ -27,7 +27,7 @@ function __server() {
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}`)
})