Skip to content

Commit

Permalink
pencil: modifying config schema vlidation
Browse files Browse the repository at this point in the history
  • Loading branch information
youssefElMkhantar committed Apr 8, 2024
1 parent daec729 commit 68a988a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,14 @@ export const configValidationSchema = joi.object({
AGENTCONNECT_SCOPE: joi.string().required().default('openid email'),
AGENTCONNECT_SECRET: joi.string().required(),
AGENTCONNECT_URL: joi.string().uri().required(),
//config
CONFIG_FILE: joi
.string()
.required()
.default('/home/hkhait/webconf_config.json'),
//Email
EMAIL_CONFERENCETOKENLENGTH: joi.number().required(),
EMAIL_FROM: joi.string().required(),
// EMAIL_SMTP_AUTH_PASS: joi.string().allow(null).optional(),
// EMAIL_SMTP_AUTH_USER: joi.string().allow(null).optional(),
EMAIL_SMTP_HOST: joi.string().required().default('localhost'),
EMAIL_SMTP_POOL: joi.boolean().required(),
EMAIL_SMTP_PORT: joi.number().required(),
EMAIL_SMTP_SECURE: joi.boolean().required(),
EMAIL_SMTP_TLS_REJECTUNAUTHORIZED: joi.boolean().required(),
EMAIL_SUBJECT: joi.string().required(),
EMAIL_TOKENEXPIRATIONINHOURS: joi.number().required(),
//frontconf
FRONTCONF_ROOMNAMECONSTRAINT_LENGTH: joi.number().required(),
FRONTCONF_ROOMNAMECONSTRAINT_MINNUMBEROFDIGITS: joi.number().required(),
Expand All @@ -44,8 +35,6 @@ export const configValidationSchema = joi.object({
//prosody
PROSODY_AVAILABLE_INSTANCES: joi.string().required(),
PROSODY_DOMAIN: joi.string().required(),
REACT_APP_BASEURL: joi.string().required(),
TITLE: joi.string().required(),
TRUSTED_REVERSE_PROXIES: joi.string().required(),
USERSFILTERINGMETHOD: joi.string().required(),
//jicofo
JICOFO_AVAILABLE_INSTANCES: joi.string().required(),
});

0 comments on commit 68a988a

Please sign in to comment.