Skip to content

Commit

Permalink
feat: expose http bind address in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Sep 4, 2023
1 parent ba354c1 commit 7f4b3b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const defaults = {
print: process.env.NODE_ENV !== 'production'
},
http: {
port: 8000
port: 8000,
host: undefined
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ const db = new PouchDB(`_media`)
logger.info(config)

scanner({ logger, db, config })
app({ logger, db, PouchDB, config }).listen(config.http.port)
app({ logger, db, PouchDB, config }).listen(config.http.port, config.http.host)

0 comments on commit 7f4b3b5

Please sign in to comment.