make the listen address configurable - fixes #927
sadly `fastify.listen` doesn't support passing more than 1 address
This commit is contained in:
parent
50a3e55be4
commit
427d09e643
4 changed files with 10 additions and 3 deletions
|
|
@ -262,7 +262,7 @@ export class ServerService implements OnApplicationShutdown {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
fastify.listen({ port: this.config.port, host: '0.0.0.0' });
|
||||
fastify.listen({ port: this.config.port, host: this.config.address });
|
||||
}
|
||||
|
||||
await fastify.ready();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue