High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: use IMMICH_HOST in microservices (#17659)
yparitcher29b30570bfa7
diff --git a/server/src/workers/microservices.ts b/server/src/workers/microservices.tsindex d20064c436..40a85a276d 100644--- a/server/src/workers/microservices.ts+++ b/server/src/workers/microservices.ts@@ -16,14 +16,16 @@ export async function bootstrap() {const app = await NestFactory.create(MicroservicesModule, { bufferLogs: true });const logger = await app.resolve(LoggingRepository);+ const configRepository = app.get(ConfigRepository);++ const { environment, host } = configRepository.getEnv();+logger.setContext('Bootstrap');app.useLogger(logger);app.useWebSocketAdapter(new WebSocketAdapter(app));- await app.listen(0);+ await (host ? app.listen(0, host) : app.listen(0));- const configRepository = app.get(ConfigRepository);- const { environment } = configRepository.getEnv();logger.log(`Immich Microservices is running [v${serverVersion}] [${environment}] `);}