mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
* Update readme * Added webp to table and entity * Added cronjob and sharp dependencies * Added conversion of webp every 5 minutes and endpoint will now server webp image if exist
23 lines
826 B
TypeScript
23 lines
826 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_USERNAME: Joi.string().required(),
|
|
DB_PASSWORD: Joi.string().required(),
|
|
DB_DATABASE_NAME: Joi.string().required(),
|
|
UPLOAD_LOCATION: Joi.string().required(),
|
|
JWT_SECRET: Joi.string().required(),
|
|
ENABLE_MAPBOX: Joi.boolean().required().valid(true, false),
|
|
MAPBOX_KEY: Joi.any().when('ENABLE_MAPBOX', {
|
|
is: false,
|
|
then: Joi.string().optional().allow(null, ''),
|
|
otherwise: Joi.string().required(),
|
|
}),
|
|
VITE_SERVER_ENDPOINT: Joi.string().required(),
|
|
}),
|
|
};
|