add: hostname binding support

This commit is contained in:
UnexomWid 2022-04-30 00:30:30 +03:00
parent 1d74b9d782
commit 6de775a1bf
No known key found for this signature in database
GPG key ID: 72822BB582BAC127
2 changed files with 3 additions and 2 deletions

4
app.js
View file

@ -43,8 +43,8 @@ async function run() {
await accountApp.init(); await accountApp.init();
await syncApp.init(); await syncApp.init();
console.log('Listening on ' + config.port + '...'); console.log('Listening on ' + config.hostname + ':' + config.port + '...');
app.listen(config.port); app.listen(config.port, config.hostname);
} }
run().catch(err => { run().catch(err => {

View file

@ -9,6 +9,7 @@ try {
config = { config = {
mode: 'development', mode: 'development',
port: 5006, port: 5006,
hostname: 'localhost',
serverFiles: join(root, 'server-files'), serverFiles: join(root, 'server-files'),
userFiles: join(root, 'user-files') userFiles: join(root, 'user-files')
}; };