diff --git a/src/app.module.ts b/src/app.module.ts index d36a401..14fdec6 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -22,6 +22,7 @@ import { UpdatesModule } from './updates/updates.module'; JELLYFIN_AUTHENTICATION_USERNAME: Joi.string().required(), JELLYFIN_AUTHENTICATION_PASSWORD: Joi.string().required(), UPDATER_DISABLE_NOTIFICATIONS: Joi.boolean(), + PORT: Joi.number().min(1), }), }), ScheduleModule.forRoot(), diff --git a/src/main.ts b/src/main.ts index 4c1b409..e65c8db 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,6 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.enableShutdownHooks(); - await app.listen(3000); + await app.listen(process.env.PORT || 3000); } bootstrap();