🦺 Add validation for jellyfin server address

This commit is contained in:
Manuel 2023-01-21 15:04:33 +01:00
parent aa432c2ab6
commit 38d48ec708

View File

@ -19,7 +19,7 @@ import { UpdatesModule } from './updates/updates.module';
ConfigModule.forRoot({ ConfigModule.forRoot({
validationSchema: Joi.object({ validationSchema: Joi.object({
DISCORD_CLIENT_TOKEN: Joi.string().required(), DISCORD_CLIENT_TOKEN: Joi.string().required(),
JELLYFIN_SERVER_ADDRESS: Joi.string().required(), JELLYFIN_SERVER_ADDRESS: Joi.string().uri().required(),
JELLYFIN_AUTHENTICATION_USERNAME: Joi.string().required(), JELLYFIN_AUTHENTICATION_USERNAME: Joi.string().required(),
JELLYFIN_AUTHENTICATION_PASSWORD: Joi.string().required(), JELLYFIN_AUTHENTICATION_PASSWORD: Joi.string().required(),
UPDATER_DISABLE_NOTIFICATIONS: Joi.boolean(), UPDATER_DISABLE_NOTIFICATIONS: Joi.boolean(),