make the listen address configurable - fixes #927

sadly `fastify.listen` doesn't support passing more than 1 address
This commit is contained in:
dakkar 2025-02-10 10:40:06 +00:00
parent 50a3e55be4
commit 427d09e643
4 changed files with 10 additions and 3 deletions

View file

@ -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();