mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
20 lines
701 B
TypeScript
20 lines
701 B
TypeScript
|
import { ConfigModuleOptions } from '@nestjs/config';
|
||
|
import Joi from 'joi';
|
||
|
|
||
|
export const immichAppConfig: ConfigModuleOptions = {
|
||
|
envFilePath: '.env',
|
||
|
isGlobal: true,
|
||
|
validationSchema: Joi.object({
|
||
|
NODE_ENV: Joi.string().required().valid('development', 'production', 'staging').default('development'),
|
||
|
DB_HOST: Joi.string().required(),
|
||
|
DB_USERNAME: Joi.string().required(),
|
||
|
DB_PASSWORD: Joi.string().required(),
|
||
|
DB_DATABASE: Joi.string().required(),
|
||
|
UPLOAD_LOCATION: Joi.string().required(),
|
||
|
JWT_SECRET: Joi.string().required(),
|
||
|
REDIS_HOST: Joi.string().required(),
|
||
|
REDIS_PORT: Joi.string().required(),
|
||
|
REDIS_PASSWORD: Joi.string().required(),
|
||
|
}),
|
||
|
};
|