Initial commit: LACA parking management system
This commit is contained in:
24
backend/src/config/app/app-config.schema.ts
Normal file
24
backend/src/config/app/app-config.schema.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as Joi from 'joi';
|
||||
|
||||
export const appConfigValidationSchema = Joi.object({
|
||||
ENVIRONMENT: Joi.string().valid('dev', 'stag', 'prod').default('dev'),
|
||||
APP_NAME: Joi.string().default('NestJS Example App'),
|
||||
APP_URL: Joi.string().default('http://localhost:3000'),
|
||||
PORT: Joi.number().default(3000),
|
||||
APP_CORS_ENABLED: Joi.boolean().default(true),
|
||||
JWT_ACCESS_SECRET: Joi.string().required(),
|
||||
JWT_REFRESH_SECRET: Joi.string().required(),
|
||||
JWT_EXPIRES_IN: Joi.string().required(),
|
||||
JWT_REFRESH_IN: Joi.string().required(),
|
||||
BCRYPT_SALT_ROUNDS: Joi.number().default(10),
|
||||
GRAPHQL_PLAYGROUND_ENABLED: Joi.boolean().default(true),
|
||||
GRAPHQL_DEBUG: Joi.boolean().default(true),
|
||||
GRAPHQL_SCHEMA_DESTINATION: Joi.string().default('schema.graphql'),
|
||||
GRAPHQL_SORT_SCHEMA: Joi.boolean().default(true),
|
||||
SWAGGER_ENABLED: Joi.boolean().default(true),
|
||||
SWAGGER_DESCRIPTION: Joi.string().default('NestJS example app API'),
|
||||
SWAGGER_VERSION: Joi.string().default('1.5'),
|
||||
SWAGGER_PATH: Joi.string().default('api'),
|
||||
REDIS_URL: Joi.string().default('redis://localhost:6379'),
|
||||
UPLOAD_LOCATION: Joi.string().default('audio'),
|
||||
});
|
||||
Reference in New Issue
Block a user