mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
refactor: more process.env references (#13106)
This commit is contained in:
parent
e5457ac8ee
commit
6c7d51da34
15 changed files with 62 additions and 28 deletions
|
|
@ -1,16 +1,23 @@
|
|||
import { ImmichEnvironment, LogLevel } from 'src/enum';
|
||||
import { VectorExtension } from 'src/interfaces/database.interface';
|
||||
|
||||
export const IConfigRepository = 'IConfigRepository';
|
||||
|
||||
export interface EnvData {
|
||||
environment: ImmichEnvironment;
|
||||
configFile?: string;
|
||||
logLevel?: LogLevel;
|
||||
|
||||
database: {
|
||||
skipMigrations: boolean;
|
||||
vectorExtension: VectorExtension;
|
||||
};
|
||||
|
||||
storage: {
|
||||
ignoreMountCheckErrors: boolean;
|
||||
};
|
||||
|
||||
nodeVersion?: string;
|
||||
}
|
||||
|
||||
export interface IConfigRepository {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export const ILoggerRepository = 'ILoggerRepository';
|
|||
export interface ILoggerRepository {
|
||||
setAppName(name: string): void;
|
||||
setContext(message: string): void;
|
||||
setLogLevel(level: LogLevel): void;
|
||||
setLogLevel(level: LogLevel | false): void;
|
||||
isLevelEnabled(level: LogLevel): boolean;
|
||||
|
||||
verbose(message: any, ...args: any): void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue