refactor(server): port env (#13158)

This commit is contained in:
Jason Rasmussen
2024-10-03 13:29:40 -04:00
committed by GitHub
parent bf43c32dbf
commit 892a35acb5
4 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import { EnvData, IConfigRepository } from 'src/interfaces/config.interface';
export class ConfigRepository implements IConfigRepository {
getEnv(): EnvData {
return {
port: Number(process.env.IMMICH_PORT) || 3001,
environment: process.env.IMMICH_ENV as ImmichEnvironment,
configFile: process.env.IMMICH_CONFIG_FILE,
logLevel: process.env.IMMICH_LOG_LEVEL as LogLevel,