diff --git a/relay/index.js b/relay/index.js index fe6c8de..0dc8dbc 100644 --- a/relay/index.js +++ b/relay/index.js @@ -94,13 +94,13 @@ app.get('/', (req, res) => { // app.post -app.listen(8080).on('error', e => { +app.listen(config.ports.http).on('error', e => { log.warn(e); setTimeout(_ => { - app.listen(8080).on('error', e => { + app.listen(config.ports.http).on('error', e => { log.error(e); }); - }, 5000); + }, config.ports.http); }); diff --git a/relay/service.js b/relay/service.js index 375ca0a..34bce6e 100644 --- a/relay/service.js +++ b/relay/service.js @@ -113,7 +113,7 @@ app.get('/', (req, res) => { }) }); -app.listen(config.ports.http); +app.listen(config.ports.service);