Skip to content

Commit

Permalink
Add config.http.host option to config. (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain8771 authored Dec 11, 2023
1 parent b3d7ee6 commit 076cdff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const _config = {
enabled: false,
port: 4242,
proto: 'https',
host: "localhost",
fqdn: os.hostname(),
ttlSecs: 30 * 60,
staticDir: HTTP_STATIC_DIR,
Expand Down
2 changes: 1 addition & 1 deletion http.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ redisListener.subscribe(PREFIX, (err) => {
app.close();
});

app.listen(config.http.port, (err, addr) => {
app.listen({host: config.http.host, port: config.http.port}, (err, addr) => {
if (err) {
throw err;
}
Expand Down

0 comments on commit 076cdff

Please sign in to comment.