Skip to content

Commit

Permalink
chore: set port to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiss-dev committed Oct 25, 2022
1 parent 5045b43 commit f33ade8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ class Server {
};
this.server = https
.createServer(options, this.app)
.listen(this.config.SERVER.PORT_HTTP, () => resolve(this.config.SERVER.PORT_HTTP));
.listen(this.config.SERVER.PORT_HTTP, '0.0.0.0', () => resolve(this.config.SERVER.PORT_HTTP));

This comment has been minimized.

Copy link
@przemvs

przemvs Oct 25, 2022

Contributor

Maybe move 0.0.0.0 to variable or env variable?

} else {
this.server = this.app.listen(this.config.SERVER.PORT_HTTP, () => resolve(this.config.SERVER.PORT_HTTP));
this.server = this.app.listen(this.config.SERVER.PORT_HTTP, '0.0.0.0', () =>
resolve(this.config.SERVER.PORT_HTTP),
);
}
} else {
reject('Server port not specified.');
Expand Down

0 comments on commit f33ade8

Please sign in to comment.