mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
parent
f32d4f15b6
commit
493d85b021
34 changed files with 689 additions and 257 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Transform, Type } from 'class-transformer';
|
||||
import { IsEnum, IsInt, IsString } from 'class-validator';
|
||||
import { IsEnum, IsInt, IsString, Matches } from 'class-validator';
|
||||
import { DatabaseSslMode, ImmichEnvironment, LogLevel } from 'src/enum';
|
||||
import { IsIPRange, Optional, ValidateBoolean } from 'src/validation';
|
||||
|
||||
|
|
@ -48,6 +48,10 @@ export class EnvDto {
|
|||
@Optional()
|
||||
IMMICH_LOG_LEVEL?: LogLevel;
|
||||
|
||||
@Optional()
|
||||
@Matches(/^\//, { message: 'IMMICH_MEDIA_LOCATION must be an absolute path' })
|
||||
IMMICH_MEDIA_LOCATION?: string;
|
||||
|
||||
@IsInt()
|
||||
@Optional()
|
||||
@Type(() => Number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue